Skip to main content

Timeline for Get multiple ETH transactions

Current License: CC BY-SA 4.0

9 events
when toggle format what by license comment
Sep 8, 2023 at 13:35 comment added Dave Dev Advocate Chainstack Added an answer; feel free to reach out if you have more questions! The reference in the docs has examples in web3 js, ethers, and web3.py
Sep 6, 2023 at 20:17 comment added Alison Silva Perfect @Dave Dev Advocate Chainstack, I think this might suit me, thank you very much. I think my question is how to use this in web3js. I couldn't find examples of how to make this type of request in NodeJS, the closest was a Python example from QuickNode. (Could you answer me as an Answer?) py: from web3 import Web3, HTTPProvider 2w3 = Web3(HTTPProvider('docs-demo.quiknode.pro/')) 3params = "0xEDA8CE" 4request = w3.provider.make_request('eth_getBlockReceipts', [params]) 5print(request)
Sep 6, 2023 at 20:13 vote accept Alison Silva
Sep 11, 2023 at 10:27
Sep 6, 2023 at 14:01 vote accept Alison Silva
Sep 6, 2023 at 20:13
Sep 6, 2023 at 12:32 comment added Dave Dev Advocate Chainstack yeah you can use web3.js, ethers, or a regular POST request. You just need to use a node running in Erigon. Chainstack offers Erigon archive nodes but not on the free plan, unfortunately. You can check this doc about eth_getBlockReceipt > docs.chainstack.com/reference/ethereum-getblockreceipts < or this guide > docs.chainstack.com/docs/… < I made both of those. Feel free to reach out if you need help or suggestions!
Sep 6, 2023 at 11:05 comment added Alison Silva Got it @Dave Dev Lawyer Chainstack. In that case, to use eth_getBlockReceipts would I still use the web3js lib? Would I just change my node? Or would I have to use an external API
Sep 5, 2023 at 13:47 comment added Dave Dev Advocate Chainstack Hi! You could use the eth_getBlockReceipts method to get all the tx receipts from a singe call if you want to go the 'checking each block' route, or you can use an API like Covalent. eth_getBlockReceipts only works on the Erigon client which is not supported by Infura as far as I know. I can give give you an overview in an answer if you are willing to check another provider. Getting logs will only show events emitted from smart contracts so if you need to pull transactions that don't come from smart contracts it won't work, plus is super heavy for the node so providers limit quite heavily.
Sep 5, 2023 at 13:00 comment added Alison Silva Understanding the suggestion to check the "to". Today I use Infura, but even using a paid version, using getBlock is heavy for me, because I have to use it too because I have to use getTransactionReceipt to get all the transaction logs and check if any addresses belong to me. I think the best way would be to somehow get a log of filtered transactions, determining whether the addresses I have are included in the transaction or not.
Sep 5, 2023 at 10:04 history answered Jaskaran Singh CC BY-SA 4.0