Content pfp
Content
@
https://opensea.io/collection/dev-21
0 reply
0 recast
2 reactions

henry pfp
henry
@henry
Does anyone know how to retrieve a history of transactions on a smart contract using wagmi/viem ? Think etherscan May be I'm being dumb here but...I can't find a way to do this
2 replies
1 recast
14 reactions

phil pfp
phil
@phil
you need to find a service that can store and serve blockchain history. the contract itself only stores state. dune / the graph probably your best best here.
1 reply
0 recast
4 reactions

henry pfp
henry
@henry
Hum, okay, thanks What about reading previous events? I can dissect some interesting data there but can't see any way to read function calls
5 replies
0 recast
0 reaction

Steve pfp
Steve
@stevedylandev.eth
Would highly recommend ponder.sh
2 replies
0 recast
2 reactions

Joaquim Verges pfp
Joaquim Verges
@joaquim
thirdweb has exactly what you need - try it out for yourself, and make sure to set 'decode' to true: https://playground.thirdweb.com/insight/transactions?path=/v1/transactions/:contractAddress
0 reply
0 recast
1 reaction

alex pfp
alex
@alexgrover.eth
I haven’t done this myself but I believe traces can be used for this, eg https://docs.alchemy.com/reference/trace-filter
1 reply
0 recast
1 reaction

smarsx pfp
smarsx
@smarsx.eth
you can get all events fired from a contract via viem client.getLogs
0 reply
0 recast
1 reaction

Monteluna pfp
Monteluna
@monteluna
Sir use Ape or Envio. Ape has an event query. Envio is a little bit more for storage and kind of better for larger projects. If you DM I can send over links to ipynb with it kind of already setup. https://www.apeworx.io/framework/
1 reply
0 recast
1 reaction