Docs

trace_block - Base RPC Method

Get traces for all transactions in a block on Base. Requires archive node for consumer dApps, SocialFi, NFT marketplaces, and merchant payment integrations.

Returns traces for all transactions in a block on Base.

Archive Node Required

This method requires an archive node. It is not available on full nodes.

When to Use This Method

  • Trace all transactions in a block by block number - Get the full trace of every transaction in a block on Base
  • Block-level execution analysis - Inspect all internal calls, transfers, and contract interactions within a block for consumer dApps, SocialFi, NFT marketplaces, and merchant payment integrations
  • MEV research - Analyze transaction ordering, sandwich patterns, and arbitrage across a full block
  • Historical block replay - Replay and trace blocks at any point in Base chain history

Best Practices

  • Similar to trace_replayBlockTransactions but without explicit replay configuration
  • Use block hash variant (debug_traceBlockByHash) for reorg-safe queries
  • Traces from dense blocks can be very large; process results in batches
  • Requires archive node access; not available on standard full nodes

Response Body

Response

Code Examples