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

Implement eth_getBlockReceipts method #5910

Open
Isarafanikov opened this issue Jul 10, 2024 · 8 comments
Open

Implement eth_getBlockReceipts method #5910

Isarafanikov opened this issue Jul 10, 2024 · 8 comments

Comments

@Isarafanikov
Copy link

Background

I noticed that method eth_getBlockReceipts is not implemented in the java-tron node, making it incompatible with tooling that expects proper specification implementation (for example, TheGraph)

Rationale

eth_getBlockReceipts is a part of the Ethereum JSON-RPC Specification since August 2023, and is based on the method with the same name present in various node implementations (geth, erigon) as well as in QuickNode and Alchemy.

Specification

See eth_getBlockReceipts in https://ethereum.github.io/execution-apis/api-documentation/

Implementation

Not yet implemented

@317787106
Copy link
Contributor

@Isarafanikov You can now use /wallet/gettransactioninfobyblocknum temporarily. Further progress may be discussed here.

@Isarafanikov
Copy link
Author

Thanks for the info. Sadly, using the custom method would require too much code modifications (and, in some cases, impossible due to closed source tooling), so I will have to wait until the endpoint is properly implemented

@tomatoishealthy
Copy link
Contributor

@Isarafanikov Do you have plans to help implement this feature?

@317787106
Copy link
Contributor

@Isarafanikov We will read Ethereum's implementation of eth_getBlockReceipts carefully to see if there are any difficulties and then incorporate it into the plan.

@abn2357
Copy link

abn2357 commented Oct 3, 2024

What is ‘the Graph’ of your tooling example in Background

@DongDongSunny
Copy link

there is a jsonRpc method here in tron https://developers.tron.network/reference/eth_gettransactionreceipt, will it help?

@317787106
Copy link
Contributor

@DongDongSunny It's similiar with eth_gettransactionreceipt.

@317787106
Copy link
Contributor

The only problem is that eth_getBlockReceipts may cost a lot of time, as it needs to convert the transactioninfo in one block to transactionReceipt, specially if there is too many events in this block.

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

5 participants