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

eth_getBlockReceipts not available via web3.py? #2004

Closed
pcko1 opened this issue May 25, 2021 · 10 comments
Closed

eth_getBlockReceipts not available via web3.py? #2004

pcko1 opened this issue May 25, 2021 · 10 comments

Comments

@pcko1
Copy link

pcko1 commented May 25, 2021

Hi, the RPC method eth_getBlockReceipts seems not available via web3.py, am I mistaken?

@pcko1 pcko1 changed the title eth_getBlockReceipts seems not available? eth_getBlockReceipts not available via web3.py? May 25, 2021
@kclowes
Copy link
Collaborator

kclowes commented Jun 11, 2021

Sorry for the delay in response on this. I don't see that rpc method available in Geth. If you want all the transaction receipts from a block, AFAIK, you'll need to do a w3.eth.get_block(block number) and then for each transaction, do w3.eth.get_transaction(tx hash). Closing, but feel free to reopen if I misunderstood something.

@kclowes kclowes closed this as completed Jun 11, 2021
@banteg
Copy link
Contributor

banteg commented Jul 1, 2021

@kclowes
Copy link
Collaborator

kclowes commented Jul 1, 2021

Ah, thanks for the clarification @banteg. Will reopen!

@kclowes kclowes reopened this Jul 1, 2021
@0xrishabh
Copy link

@kclowes Do you have any suggestions on how to start working on this?

@kclowes
Copy link
Collaborator

kclowes commented Aug 2, 2021

@0xrishabh here is a PR that was merged recently for another RPC method that we just added. That should provide a good starting point.

@ghost
Copy link

ghost commented Jul 14, 2022

Did this ever get added? I looked at the linked PR but didn't see anything further.

@kclowes
Copy link
Collaborator

kclowes commented Jul 14, 2022

I don't think it ever got added. Feel free to do so, or we now have functionality to add custom methods if you don't want to PR it: https://snakecharmers.ethereum.org/web3-py-patterns-customizations/ . See Section 2.

@ghost
Copy link

ghost commented Jul 15, 2022

Thanks, if I did want to add it is there some documentation on how to go about that or is it a matter of just looking to work it out?

@kclowes
Copy link
Collaborator

kclowes commented Jul 15, 2022

See three comments up:

(Here is a PR)[https://github.com//pull/2051] that was merged recently for another RPC method that we just added. That should provide a good starting point.

@kclowes
Copy link
Collaborator

kclowes commented Mar 18, 2024

Closed via #3247

@kclowes kclowes closed this as completed Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants