0

I am working on service which monitors Ethereum based blockchains using web3 API calls. For each new mined block, it has to parse each of the transactions in the block. In addition, it needs to parse the amount of gas used by each transaction. The method I found of doing it is by calling eth_getTransactionReceipt.

I am facing a performance issue, since this API needs to be called per transaction. As a first improvement, I perform a batch of many eth_getTransactionReceipt calls in a single JSON RPC batch request.

I am looking for a way to further improve the performance by doing this with a single call per block, in a similar manner to trace_block.

1 Answer 1

0

OpenEthereum node (used to be called Parity) exposes an API to get receipts for all transactions in a block using a single API call: parity_getblockreceipts.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.