-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Method for all transactions by address #501
Comments
@ParthBarot-BoTreeConsulting The RPC method you point to assumes one already knows the transaction's block hash and the transaction's index in that block. I think the OP is asking for an RPC that would return a list of all transactions on a given address (in other words, they are asking for what you assume they already have). @konovalovvlad2 There is no such function, as this would require an full index of transactions per account with is not how the data is stored. This is probably the best you'll find: https://ethereum.stackexchange.com/questions/3655/how-can-all-transactions-sent-to-an-address-be-found, but given the speed (especially when going against Infura) will be prohibitive. At QuickBlocks, we're trying to solve this exact issue, but we're pre-alpha at this point. |
@tjayrush What I have done in my web app is,
While doing this, I found that the method @konovalovvlad2 mentioned was not working for me. Though I ran the geth properly and it synced all the default recent blocks, but it maybe missing the transactions performed. But the other method is working fine. I hope this helps. Thanks |
I think @konovalovvlad2 was looking for a single method that would return transactions for a given account as opposed to having to spin through transactions looking for them. Like this: eth_getTransactionsOnAddress("0x1234..."). But that doesn't exist. Your method does work, but (a) you have to spin through transactions, and (b) it will miss internal transactions (i.e. message calls initiated by smart contracts). |
@tjayrush Ok got it, makes sense. Similar disucssion here - web3/web3.js#580 There are two options,
Thanks |
Before this closes, 1) doesn’t work for acquiring transactions in the past (only works for th S moment forward), and 2) is fully centralaluzed and therefor not robust. @jamesray I’m not sure why this is closing though. There should be a wiki entry for acquiring lists of transactions per account in both centralized and decentralized way. |
The codebase has been updated to remove all content, leaving only the README, directing people to go to wiki/wiki to fix issues themselves, or failing that, make a note on Gitter, and if that doesn't fix it, open an issue if all else fails. There are 180 issues in this repo, and unfortunately there is no automated way to bulk close issues while leaving a message. |
See https://github.com/ethereum/wiki/wiki#issues for guidelines on issues. |
Updated link: Please see https://github.com/ethereum/wiki/wiki#issues-and-pull-requests for why this was closed. |
Hello. Help please, I can not find a method for taking all transactions to the address, I can not find among the methods https://infura.io/docs/#supported-json-rpc-methods
Can you help me ?
The text was updated successfully, but these errors were encountered: