Note that is WIP since eth_getBlockReceipts returns the error "parameter not implemented" if called with string tag (e.g. "latest") or block number. Block search by number is not implemented.
Integration test of eth_getBlockReceipts
Using curl:
curl 127.0.0.1:8545/ -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_getBlockReceipts","params":["0xb81fcfee29cea2922aa9f553644463bee1c49895e56bc87f4417834e681ad305"],"id":1}'
curl 127.0.0.1:8545/ -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_getBlockReceipts","params":["latest"],"id":1}'
curl 127.0.0.1:8545/ -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_getBlockReceipts","params":["0x1234"],"id":1}'
Implementations follows specs.
Reference file: internal/ethapi/api.go
Note that is WIP since
eth_getBlockReceipts
returns the error"parameter not implemented"
if called with string tag (e.g."latest"
) or block number. Block search by number is not implemented.Integration test of eth_getBlockReceipts
Using curl:
Apparently ethers Js do not implement this method: https://github.com/ethers-io/ethers.js/issues/4768
Intregration test of eth_getBlockTransactionCountByHash
Using curl:
Using web3.js: