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
: objectblockHash
: string (hash)blockNumber
: string (hex integer)hash
: string (hash)transactionIndex
: string (hex integer)type
: 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_callMany
Performs multiple traces on top of a block
- Parameters
- Request
- Response
calls
: array of object
traceTypes
: array of stringtransaction
: objectblockHash
: string (hash)blockNumber
: string (hex integer)hash
: string (hash)transactionIndex
: string (hex integer)type
: integer
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_callMany",
"params": [calls, blockParameter]
}'
{
"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_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_get
Returns trace at given position.
- Parameters
- Request
- Response
-
txHash
: string (hash) -
positions
: array of string (hex integer)
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "trace_get",
"params": [txHash, positions]
}'
{
"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