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

Get receipts by block number #19634

Closed
ramilexe opened this issue May 28, 2019 · 11 comments
Closed

Get receipts by block number #19634

ramilexe opened this issue May 28, 2019 · 11 comments

Comments

@ramilexe
Copy link

Why you did not add RPC method GetReceipts by block number or block hash?
It is internally stored by block hash.

@hadv
Copy link
Contributor

hadv commented May 30, 2019

@ramilexe
Copy link
Author

Hi @hadv
I don't need logs, I need receipts (gasUsed field).

@ligi
Copy link
Member

ligi commented Jun 4, 2019

is perhaps using graphql an option until this is implemented?

@holiman
Copy link
Contributor

holiman commented Jun 4, 2019

This should be doable on the old RPC, you're welcome to file a PR :)
This may be a better fit to put into the GraphQL api, if it does not already have support for that.

@adamschmideg
Copy link
Contributor

This is a valid question / request. You may be interested in the GraphQL which supports this.

@karalabe
Copy link
Member

karalabe commented Jun 4, 2019

Maybe try GraphQL? :))

ramilexe added a commit to ramilexe/go-ethereum that referenced this issue Jun 16, 2019
tests:
 - eth_getTransactionByBlockHashAndIndex
 - eth_getBlockReceipts
@ramilexe
Copy link
Author

Implemented new RPC API eth_getBlockReceipts in PR #19721
@karalabe @holiman please review :)

@ethereum ethereum deleted a comment from sm1thbr3n Jul 18, 2019
@adamschmideg
Copy link
Contributor

adamschmideg commented Jul 23, 2019

This is how you can get gasUsed with GraphQL with this query:

{
  block(number: 5000000) {
    hash
    gasUsed
  }
}

@richmanrich
Copy link

@no-response
Copy link

no-response bot commented Aug 22, 2019

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have more relevant information or answers to our questions so that we can investigate further.

@kkeolmusae
Copy link

https://github.com/ethereum/go-ethereum/releases/tag/v1.13.0

Support eth_getBlockReceipts RPC API call now.

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