-
Notifications
You must be signed in to change notification settings - Fork 19.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add API to get transactions for accounts #1749
Comments
The JSON RPC API does not specify returning account transactions, and the reason we are reluctant to support it is because it is something already achievable through contracts, and contracts are meant to be the main driving entities in the system, not end user accounts (those should initiate things). However, we as many people did request this feature, it is on our consideration list to the future Go API which is under design now, so with a bit of luck, we might actually also add support for this, but that's a bit more into the future (not more than 1-2 months hopefully). Maybe @obscuren can weigh in as if I remember correctly he had some strong opinion about this. |
I think some more discussion can be found here #1703. |
Any updates on this? Polling every block and looking for transactions to a specific account is starting to cost serious CPU time. |
I'll close this in favor of a newer duplicate issue that has some semi-active discussion on it. #1897 |
When is this going to be added? |
My vote is for eth_listTransactions |
…um#1749) ### Description This fixes the issue that adds txs with gasPrice zero, which will not be executed but we keep for at lest 3 hours (default expiration time), and fill the txpool with peding txs ### Tested Manually and add unit tests ### Related issues - Fixes ethereum#1768 ### Backwards compatibility Yes
As far as I can say there's currently no API to get all the transactions for a given account(s).
There should be a way to do this. I tried using eth_NewFilter but that seems to only return contract info. Something like NewFilter should be possible for getting transactions belonging to a specific set of accounts (receiver OR sender both) and it should follow NewFilter logic so only certain history can be requested.
If this is already possible please advise on how.
The text was updated successfully, but these errors were encountered: