Skip to content

Latest commit

 

History

History
50 lines (37 loc) · 5.06 KB

node-tracing-json-rpc-requirements.md

File metadata and controls

50 lines (37 loc) · 5.06 KB

Node Tracing / JSON RPC Requirements

Standard JSON RPC Requirements

Fetching Pending Transactions

Client Method
Erigon
Nethermind
OpenEthereum
parity_pendingTransactions
Geth txpool_content

Enable Tracing to Fetch Internal Transactions

Client Method
Erigon
Nethermind
OpenEthereum
  • trace_replayBlockTransactions (fetching of internal transactions)
  • trace_block (fetching of block rewards)
Geth
  • debug_traceBlockByNumber
  • or debug_traceTransaction
callTracer is used by default, starting from the UCHAIN.INFO 5.1.0 release. To switch to a custom JS tracer, the UCHAIN.INFO maintainer should set the export INDEXER_INTERNAL_TRANSACTIONS_TRACER_TYPE=js environment variable. Prior to the 5.1.0 release, js tracer was a default option.

JSON RPC Performance Benchmarks

Time measures for response time of crucial JSON RPC methods for indexing in UCHAIN.INFO. Ways to improve speed.

  1. eth_getBlockByNumber without transaction receipts for a block with 15 transactions: Desired response time is < 0.5s. For instance, in case of the Gnosis chain archive node, the response time for the block with ~20 transactions is ~0.4s.
  2. eth_getTransactionReceipt for random transactions desired response time is < 0.5s. For the Gnosis chain archive node the response time is ~0.3 - 0.4s.
  3. Batched eth_getTransactionReceipt for 15 transactions acceptable response time is Less than 1s. For the Gnosis chain archive node, it is ~0.6 - 0.7s

Rate Limit

The desired rate limit for RPC endpoint is 200 req/sec for the indexing phase and 100 req/sec for the indexed chain.

EVM Requirements & Clients

  • All EVM chains must define these variables during configuration.
  • uchaininfo currently supports Erigon, Geth, Nethermind, Hyperledger Besu, and Ganache clients. Define the node variant using the ETHEREUM_JSONRPC_VARIANT environment variable. More information