Skip to content
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

Closed
almindor opened this issue Aug 31, 2015 · 6 comments
Closed

add API to get transactions for accounts #1749

almindor opened this issue Aug 31, 2015 · 6 comments

Comments

@almindor
Copy link

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.

@karalabe
Copy link
Member

karalabe commented Sep 8, 2015

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.

@maran
Copy link
Member

maran commented Sep 8, 2015

I think some more discussion can be found here #1703.

@wildbunny
Copy link

Any updates on this? Polling every block and looking for transactions to a specific account is starting to cost serious CPU time.

@karalabe
Copy link
Member

I'll close this in favor of a newer duplicate issue that has some semi-active discussion on it. #1897

@MelbourneDeveloper
Copy link

When is this going to be added?

@jdneidig
Copy link

My vote is for eth_listTransactions
We made T-shirt, it’s Free
https://simbachain.com/community/join-our-community/

tony-ricciardi pushed a commit to tony-ricciardi/go-ethereum that referenced this issue Jan 20, 2022
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants