Skip to main content

trace_replayBlockTransactions

Replays all transactions in a block on Base and returns the requested traces.

Archive Node Required

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

Use Cases#

  • Block replay - Re-execute all transactions with full trace output
  • State diff analysis - Get state changes for every transaction in a block
  • VM trace extraction - Obtain detailed EVM execution traces for consumer dApps, SocialFi, NFT marketplaces, and merchant payment integrations

Parameters#

ParameterTypeRequiredDescription
blockNumberQUANTITY|TAGYesBlock number in hex or tag
traceTypesArrayYesTrace types: ["trace"], ["vmTrace"], ["stateDiff"], or combinations

Request#

{
"jsonrpc": "2.0",
"method": "trace_replayBlockTransactions",
"params": ["latest", ["trace"]],
"id": 1
}

Code Examples#

curl -X POST https://api-base-mainnet-archive.n.dwellir.com/YOUR_API_KEY \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "trace_replayBlockTransactions",
"params": ["latest", ["trace"]],
"id": 1
}'