tronprotocol / java-tron

Java implementation of the Tron whitepaper
GNU Lesser General Public License v3.0
3.69k stars 1.39k forks source link

Implement eth_getBlockReceipts method #5910

Open Isarafanikov opened 1 month ago

Isarafanikov commented 1 month ago

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 commented 1 month ago

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

Isarafanikov commented 1 month ago

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 commented 1 month ago

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

317787106 commented 1 month ago

@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.