trace namespace
trace_block
- Parameters
- Request
- Response
numberOrTag
: string (block number or hash or either ofearliest
,finalized
,latest
,pending
, orsafe
)
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "trace_block",
"params": [numberOrTag]
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result
: array of object
action
: objectauthor
: string (address)callType
: stringcreationMethod
: stringerror
: stringfrom
: string (address)gas
: string (hex integer)includeInTrace
: booleaninput
: string (hex data)isPrecompiled
: booleanresult
: objectaddress
: string (address)code
: string (hex data)gasUsed
: string (hex integer)output
: string (hex data)
rewardType
: stringsubtraces
: array of objectto
: string (address)traceAddress
: array of string (hex integer)type
: stringvalue
: string (hex integer)
blockHash
: string (hash)blockNumber
: string (hex integer)error
: stringresult
: objectaddress
: string (address)code
: string (hex data)gasUsed
: string (hex integer)output
: string (hex data)
subtraces
: string (hex integer)traceAddress
: array of string (hex integer)transactionHash
: string (hash)transactionPosition
: string (hex integer)type
: string
trace_call
- Parameters
- Request
- Response
-
call
: objectaccessList
: array of objectaddress
: string (address)storageKeys
: array of string (hex integer)
blobVersionedHashes
: array of string (hex data)blockHash
: string (hash)blockNumber
: string (hex integer)chainId
: string (hex integer)data
: string (hex data)from
: string (address)gas
: string (hex integer)gasPrice
: string (hex integer)hash
: string (hash)input
: string (hex data)isSystemTx
: booleanmaxFeePerBlobGas
: string (hex integer)maxFeePerGas
: string (hex integer)maxPriorityFeePerGas
: string (hex integer)mint
: string (hex integer)nonce
: string (hex integer)r
: string (hex integer)s
: string (hex integer)sourceHash
: string (hash)to
: string (address)transactionIndex
: string (hex integer)type
: integerv
: string (hex integer)value
: string (hex integer)yParity
: string (hex integer)
-
traceTypes
: array of string -
blockParameter
: string (block number or hash or either ofearliest
,finalized
,latest
,pending
, orsafe
)
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "trace_call",
"params": [call, traceTypes, blockParameter]
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result
: object
action
: objectauthor
: string (address)callType
: stringcreationMethod
: stringerror
: stringfrom
: string (address)gas
: string (hex integer)includeInTrace
: booleaninput
: string (hex data)isPrecompiled
: booleanresult
: objectaddress
: string (address)code
: string (hex data)gasUsed
: string (hex integer)output
: string (hex data)
rewardType
: stringsubtraces
: array of objectto
: string (address)traceAddress
: array of string (hex integer)type
: stringvalue
: string (hex integer)
output
: string (hex data)stateChanges
: map of objectbalance
: objectafter
: string (hex integer)before
: string (hex integer)
code
: objectafter
: string (hex data)before
: string (hex data)
nonce
: objectafter
: string (hex integer)before
: string (hex integer)
storage
: map of objectafter
: string (hex data)before
: string (hex data)
transactionHash
: string (hash)vmTrace
: objectcode
: string (hex data)operations
: array of objectcost
: string (hex integer)memory
: objectdata
: string (hex data)offset
: string (hex integer)
pc
: string (hex integer)push
: array of string (hex data)store
: objectkey
: string (hex data)value
: string (hex data)
sub
: objectused
: string (hex integer)
trace_filter
- Parameters
- Request
- Response
traceFilterForRpc
: objectafter
: string (hex integer)count
: string (hex integer)fromAddress
: array of string (address)fromBlock
: string (block number or hash or either ofearliest
,finalized
,latest
,pending
, orsafe
)toAddress
: array of string (address)toBlock
: string (block number or hash or either ofearliest
,finalized
,latest
,pending
, orsafe
)
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "trace_filter",
"params": [traceFilterForRpc]
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result
: array of object
action
: objectauthor
: string (address)callType
: stringcreationMethod
: stringerror
: stringfrom
: string (address)gas
: string (hex integer)includeInTrace
: booleaninput
: string (hex data)isPrecompiled
: booleanresult
: objectaddress
: string (address)code
: string (hex data)gasUsed
: string (hex integer)output
: string (hex data)
rewardType
: stringsubtraces
: array of objectto
: string (address)traceAddress
: array of string (hex integer)type
: stringvalue
: string (hex integer)
blockHash
: string (hash)blockNumber
: string (hex integer)error
: stringresult
: objectaddress
: string (address)code
: string (hex data)gasUsed
: string (hex integer)output
: string (hex data)
subtraces
: string (hex integer)traceAddress
: array of string (hex integer)transactionHash
: string (hash)transactionPosition
: string (hex integer)type
: string
trace_rawTransaction
Traces a call to eth_sendRawTransaction without making the call, returning the traces
- Parameters
- Request
- Response
-
data
: string (hex data) -
traceTypes
: array of string
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "trace_rawTransaction",
"params": [data, traceTypes]
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result
: object
action
: objectauthor
: string (address)callType
: stringcreationMethod
: stringerror
: stringfrom
: string (address)gas
: string (hex integer)includeInTrace
: booleaninput
: string (hex data)isPrecompiled
: booleanresult
: objectaddress
: string (address)code
: string (hex data)gasUsed
: string (hex integer)output
: string (hex data)
rewardType
: stringsubtraces
: array of objectto
: string (address)traceAddress
: array of string (hex integer)type
: stringvalue
: string (hex integer)
output
: string (hex data)stateChanges
: map of objectbalance
: objectafter
: string (hex integer)before
: string (hex integer)
code
: objectafter
: string (hex data)before
: string (hex data)
nonce
: objectafter
: string (hex integer)before
: string (hex integer)
storage
: map of objectafter
: string (hex data)before
: string (hex data)
transactionHash
: string (hash)vmTrace
: objectcode
: string (hex data)operations
: array of objectcost
: string (hex integer)memory
: objectdata
: string (hex data)offset
: string (hex integer)
pc
: string (hex integer)push
: array of string (hex data)store
: objectkey
: string (hex data)value
: string (hex data)
sub
: objectused
: string (hex integer)
trace_replayBlockTransactions
- Parameters
- Request
- Response
-
blockParameter
: string (block number or hash or either ofearliest
,finalized
,latest
,pending
, orsafe
) -
traceTypes
: array of string
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "trace_replayBlockTransactions",
"params": [blockParameter, traceTypes]
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result
: array of object
action
: objectauthor
: string (address)callType
: stringcreationMethod
: stringerror
: stringfrom
: string (address)gas
: string (hex integer)includeInTrace
: booleaninput
: string (hex data)isPrecompiled
: booleanresult
: objectaddress
: string (address)code
: string (hex data)gasUsed
: string (hex integer)output
: string (hex data)
rewardType
: stringsubtraces
: array of objectto
: string (address)traceAddress
: array of string (hex integer)type
: stringvalue
: string (hex integer)
output
: string (hex data)stateChanges
: map of objectbalance
: objectafter
: string (hex integer)before
: string (hex integer)
code
: objectafter
: string (hex data)before
: string (hex data)
nonce
: objectafter
: string (hex integer)before
: string (hex integer)
storage
: map of objectafter
: string (hex data)before
: string (hex data)
transactionHash
: string (hash)vmTrace
: objectcode
: string (hex data)operations
: array of objectcost
: string (hex integer)memory
: objectdata
: string (hex data)offset
: string (hex integer)
pc
: string (hex integer)push
: array of string (hex data)store
: objectkey
: string (hex data)value
: string (hex data)
sub
: objectused
: string (hex integer)
trace_replayTransaction
- Parameters
- Request
- Response
-
txHash
: string (hash) -
traceTypes
: array of string
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "trace_replayTransaction",
"params": [txHash, traceTypes]
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result
: object
action
: objectauthor
: string (address)callType
: stringcreationMethod
: stringerror
: stringfrom
: string (address)gas
: string (hex integer)includeInTrace
: booleaninput
: string (hex data)isPrecompiled
: booleanresult
: objectaddress
: string (address)code
: string (hex data)gasUsed
: string (hex integer)output
: string (hex data)
rewardType
: stringsubtraces
: array of objectto
: string (address)traceAddress
: array of string (hex integer)type
: stringvalue
: string (hex integer)
output
: string (hex data)stateChanges
: map of objectbalance
: objectafter
: string (hex integer)before
: string (hex integer)
code
: objectafter
: string (hex data)before
: string (hex data)
nonce
: objectafter
: string (hex integer)before
: string (hex integer)
storage
: map of objectafter
: string (hex data)before
: string (hex data)
transactionHash
: string (hash)vmTrace
: objectcode
: string (hex data)operations
: array of objectcost
: string (hex integer)memory
: objectdata
: string (hex data)offset
: string (hex integer)
pc
: string (hex integer)push
: array of string (hex data)store
: objectkey
: string (hex data)value
: string (hex data)
sub
: objectused
: string (hex integer)
trace_transaction
- Parameters
- Request
- Response
txHash
: string (hash)
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "trace_transaction",
"params": [txHash]
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result
: array of object
action
: objectauthor
: string (address)callType
: stringcreationMethod
: stringerror
: stringfrom
: string (address)gas
: string (hex integer)includeInTrace
: booleaninput
: string (hex data)isPrecompiled
: booleanresult
: objectaddress
: string (address)code
: string (hex data)gasUsed
: string (hex integer)output
: string (hex data)
rewardType
: stringsubtraces
: array of objectto
: string (address)traceAddress
: array of string (hex integer)type
: stringvalue
: string (hex integer)
blockHash
: string (hash)blockNumber
: string (hex integer)error
: stringresult
: objectaddress
: string (address)code
: string (hex data)gasUsed
: string (hex integer)output
: string (hex data)
subtraces
: string (hex integer)traceAddress
: array of string (hex integer)transactionHash
: string (hash)transactionPosition
: string (hex integer)type
: string