Stephan
@stephancill
what is the best way to index data in real time based on tx calldata suffix? /ponder-sh doesn't have this functionality out of the box cc @horsefacts.eth in case you guys are indexing frame txs for whatever reason (also can i get an invite to /evm pls)
3 replies
0 recast
6 reactions
Kevin
@typedarray.eth
Just saw this - answering for posterity! Ponder approach: 1) Add "account" with "address: undefined" (match all addresses) 2) Register indexing fn for "transaction:from" event 3) if (!event.tx.input.endsWith("...")) return If you need logs/traces created by the matched tx, can use an RPC request in your indexing function. Historical backfill also doable, though you'll have to fetch every block. The core issue is that the RPC API does not support tx input filters. To do any better than "fetch all txs and filter client-side" you need a pre-indexed database of the entire chain, like the indexsupply approach or something custom. Docs: https://ponder.sh/docs/accounts#register-indexing-functions
2 replies
0 recast
3 reactions
mskr
@mskr
I tried to implement the transaction:from processing based on the guide but it is not possible to create an account with address: undefined. I'm getting the error Documentation is saying that address can be undefined but that's not possible not event on type level.
0 reply
0 recast
0 reaction