Implement eth_getBlockReceipts method
Closed this issue · 13 comments
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
@Isarafanikov You can now use /wallet/gettransactioninfobyblocknum
temporarily. Further progress may be discussed here.
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
@Isarafanikov Do you have plans to help implement this feature?
@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.
What is ‘the Graph’ of your tooling example in Background
there is a jsonRpc method here in tron https://developers.tron.network/reference/eth_gettransactionreceipt, will it help?
@DongDongSunny It's similiar with eth_gettransactionreceipt.
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.
Hello everyone!, I want to follow up on development plans to implement the eth_getBlockReceipts, is there a plan already to implement it? Implementing this will significantly help to reduce processing costs for Data platforms like Token Terminal, Alchemy, QuickNode, The Graph, etc, thus closing gaps in new platform integrations.
Thanks!
there is a jsonRpc method here in tron https://developers.tron.network/reference/eth_gettransactionreceipt, will it help?
I've checked this method, and it looks like we already have each transaction data here in the same format expected from eth_getBlockReceipts, but we need a method to query all relevant data by block number, I think now should be easier to implement eth_getBlockReceipts :)
@317787106 Hi, I found you have discussed eth_getBlockReceipts in tronprotocol/pm#97, is there any update?
@waynercheung It's under development. Plan to implement in next release.
Status Update: This issue has been scheduled for implementation in the next release, tentatively V4.8.1. The resolution plan is as follows
- ✅ Added to development pipeline
- ⏳ Will close automatically when core PRs land
- 🔔 Maintain real-time status updates here
However, all discussions related to this issue remain welcome. Please continue the conversation here if you have relevant topics to contribute. Thanks!
At last, please follow V4.8.1 status at Issue #6342 and watch this issue (via Subscribe button) to track progress if needed. We value your involvement in TRON's development!