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]
}'

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]
}'

trace_filter

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

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

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

trace_transaction

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