Content
@
https://opensea.io/collection/zorbs-eth
0 reply
1 recast
1 reaction
anthony
@fascinated
@indexsupply is such a powerful tool! love to query this let's say, you want to index all "SparkedComment" events (emitted when you reward someone for a specific comment with some eth) in the @zora universe
1 reply
0 recast
6 reactions
anthony
@fascinated
here's an example tx of me sparking this comment https://basescan.org/tx/0x61debaa0fc7a53d4e8f2c1490020c3aac1e09ed72c8fc6f7984deed3d9679225#eventlog
1 reply
0 recast
3 reactions
anthony
@fascinated
you can get these events, including the commentIdentifier tuple with this query (note the cool tuple-extracting syntax, thanks @ryansmith!) specifying a block_num window speeds up the query considerably, block 22675000 is close to the first SparkedComment event. https://tinyurl.com/fetch-sparkedcomment-zora
1 reply
0 recast
2 reactions
anthony
@fascinated
while you can use the commentId value to find which comment is being rewarded if you've already indexed all the comments, the commentIdentifier tuple helps with some context since you can find out which post the comment is related to, and who posted it. shoutout to @dano for this handy event design!
0 reply
1 recast
2 reactions