Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Feature request: method to get Merkle proof of transaction inclusion within a block #10876

Closed
refi93 opened this issue Jul 11, 2019 · 2 comments
Labels
A3-stale 🍃 Pull request did not receive any updates in a long time. No review needed at this stage. Close it. F8-enhancement 🎊 An additional feature request. M6-rpcapi 📣 RPC API. P9-somedaymaybe 🌞 Issue might be worth doing eventually.

Comments

@refi93
Copy link

refi93 commented Jul 11, 2019

I know there is the eth_getProof JSON RPC call (EIP-1186), but this only returns the proof of balance of an account. I think it would be nice to have the ability to also get the Merkle proof of inclusion of a transaction within a block, similar to BTC's getTxOutProof.

This would be a convenient way to get a proof that a certain transaction took place, no matter if it was successful. In general, this may seem a "weak" information but if you have the guarantee that the receiving address is not a smart contract, it may be IMHO useful. Or you may simply want to know if a transaction actually belongs to a block.

Is there perhaps already some JSON RPC call that would provide this functionality, at least indirectly, but without fetching the whole block, or some work in progress in this direction?

@jam10o-new jam10o-new added F8-enhancement 🎊 An additional feature request. M6-rpcapi 📣 RPC API. P9-somedaymaybe 🌞 Issue might be worth doing eventually. labels Jul 11, 2019
@jam10o-new
Copy link
Contributor

@refi93 the closest thing to this currently would probably be to use https://wiki.parity.io/JSONRPC-parity-module#parity_getblockheaderbynumber and use either the transactionsRoot or receiptsRoot - this would probably need an extra https://wiki.parity.io/JSONRPC-parity-module#parity_getblockreceipts call to get all the information needed to verify a specific transaction receipt in a block

@refi93
Copy link
Author

refi93 commented Jul 16, 2019

would you appreciate a PR that would add this call?

@adria0 adria0 added the A3-stale 🍃 Pull request did not receive any updates in a long time. No review needed at this stage. Close it. label Jul 27, 2020
@adria0 adria0 closed this as completed Jul 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A3-stale 🍃 Pull request did not receive any updates in a long time. No review needed at this stage. Close it. F8-enhancement 🎊 An additional feature request. M6-rpcapi 📣 RPC API. P9-somedaymaybe 🌞 Issue might be worth doing eventually.
Projects
None yet
Development

No branches or pull requests

3 participants