Skip to main content
Version: Next

trace namespace

trace_block​

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "trace_block",
"params": [numberOrTag, fork]
}'

trace_call​

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "trace_call",
"params": [call, traceTypes, blockParameter, stateOverride]
}'

trace_callMany​

Performs multiple traces on top of a block

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "trace_callMany",
"params": [calls, blockParameter]
}'

trace_filter​

Returns traces matching the filter, in the range fromBlock to toBlock (block numbers or tags, each defaulting to latest), or in the single canonical block named by blockHash, which excludes the range. Any address in fromAddress or toAddress matches that list; an omitted, null or empty list does not restrict. mode "intersection" (default) requires a match in every list that is set; "union" requires a match in any of them.

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "trace_filter",
"params": [traceFilterForRpc]
}'

trace_get​

Returns the trace at the given traceAddress path: [] selects the root, ["0x0"] its first child. Returns null if the transaction is not found or has no trace at that path.

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "trace_get",
"params": [txHash, traceAddress]
}'

trace_rawTransaction​

Traces a call to eth_sendRawTransaction without making the call, returning the traces

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "trace_rawTransaction",
"params": [data, traceTypes]
}'

trace_replayBlockTransactions​

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "trace_replayBlockTransactions",
"params": [blockParameter, traceTypes]
}'

trace_replayTransaction​

Replays a transaction and returns the requested traces. Returns null if the transaction is not found.

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "trace_replayTransaction",
"params": [txHash, traceTypes, traceNonCanonical]
}'

trace_simulateV1​

Returns parity like traces for simulated blocks

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "trace_simulateV1",
"params": [payload, blockParameter, traceTypes]
}'

trace_transaction​

Returns the traces of a transaction. Returns null if the transaction is not found.

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "trace_transaction",
"params": [txHash, traceNonCanonical]
}'