Trace module
Returns traces created at given block.
Invocation |
---|
trace.block(numberOrTag) |
Parameter | Type | Description |
---|---|---|
numberOrTag | BlockParameter object | |
Returned type | Description |
---|---|
Array | |
Example request of trace.block
Example response of trace.block
Objects in trace_block
trace.block(latest)
{"action":{"callType":"call","from":"0x31b98d14007bdee637298086988a0bbd31184523","gas":"0x0","input":"0x","to":"0x0e8cda5d7ebda67606a9b296a9dd4351bca1d263","value":"0x1043561a882930000"},"blockHash":"0x6537c92f1fae55d9ea9b0fb25744262114b09e50ac320d7d839830f8c4d723a0","blockNumber":8969312,"result":{"gasUsed":"0x0","output":"0x"},"subtraces":0,"traceAddress":[],"transactionHash":"0xf4860fc1dc22404b85db7d666dfae65dec7cdcb196837a67ffa992d709f78b9e","transactionPosition":11,"type":"call"},{"action":{"callType":"call","from":"0x71c95151c960aa3976b462ff41adb328790f110d","gas":"0x7205","input":"0x095ea7b3000000000000000000000000c5992c0e0a3267c7f75493d0f717201e26be35f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff","to":"0x5592ec0cfb4dbc12d3ab100b257153436a1f0fea","value":"0x0"},"blockHash":"0x6537c92f1fae55d9ea9b0fb25744262114b09e50ac320d7d839830f8c4d723a0","blockNumber":8969312,"result":{"gasUsed":"0x5fdd","output":"0x0000000000000000000000000000000000000000000000000000000000000001"},"subtraces":0,"traceAddress":[],"transactionHash":"0xec216ca7e754ea289dd59fc7f9f2c9a5b90668afb5a52d49ee15c3c5fd559b3b","transactionPosition":12,"type":"call"}
BlockParameter
Field name | Type |
---|---|
Type | BlockParameterType object |
BlockNumber | Quantity |
BlockHash | Hash |
RequireCanonical | Boolean |
BlockParameterType
Quantity
orString
(latest, earliest, pending)
Traces a call, returning the traces
Invocation |
---|
trace.call(call, traceTypes, blockParameter) |
Parameter | Type | Description |
---|---|---|
call | TransactionForRpc object | |
traceTypes | Array | Possible values : ["VmTrace", "StateDiff", "Trace", "Rewards", "All"] |
blockParameter | BlockParameter object | |
Returned type | Description |
---|---|
ParityTxTraceFromReplay object | |
Example request of trace.call
Objects in trace_call
trace.call(call, traceTypes, blockParameter)
TransactionForRpc
Field name | Type |
---|---|
DefaultChainId | Quantity |
Hash | Hash |
Nonce | Quantity |
BlockHash | Hash |
BlockNumber | Quantity |
TransactionIndex | Quantity |
From | Address |
To | Address |
Value | Quantity |
GasPrice | Quantity |
MaxPriorityFeePerGas | Quantity |
MaxFeePerGas | Quantity |
Gas | Quantity |
Input | Data |
ChainId | Quantity |
Type | TxType object |
AccessList | AccessListItemForRpc[] object |
MaxFeePerBlobGas | Quantity |
BlobVersionedHashes | Data |
V | Quantity |
S | Quantity |
R | Quantity |
YParity | Quantity |
TxType
AccessListItemForRpc[]
Field name | Type |
---|---|
Address | Address |
StorageKeys | Array |
BlockParameter
Field name | Type |
---|---|
Type | BlockParameterType object |
BlockNumber | Quantity |
BlockHash | Hash |
RequireCanonical | Boolean |
BlockParameterType
Quantity
orString
(latest, earliest, pending)
ParityTxTraceFromReplay
Field name | Type |
---|---|
Output | Data |
TransactionHash | Hash |
VmTrace | ParityVmTrace object |
Action | ParityTraceAction object |
StateChanges | Array |
ParityVmTrace
Field name | Type |
---|---|
Code | Data |
Operations | ParityVmOperationTrace[] object |
ParityTraceAction
Field name | Type |
---|---|
TraceAddress | Array |
CallType | String |
IncludeInTrace | Boolean |
IsPrecompiled | Boolean |
Type | String |
CreationMethod | String |
From | Address |
To | Address |
Gas | Quantity |
Value | Quantity |
Input | Data |
Result | ParityTraceResult object |
Subtraces | Array |
Author | Address |
RewardType | String |
Error | String |
Return all traces of the given filter
Invocation |
---|
trace.filter(traceFilterForRpc) |
Parameter | Type | Description |
---|---|---|
traceFilterForRpc | TraceFilterForRpc object | |
Returned type | Description |
---|---|
Array | |
Example request of trace.filter
Objects in trace_filter
trace.filter(traceFilterForRpc)
TraceFilterForRpc
Field name | Type |
---|---|
FromBlock | BlockParameter object |
ToBlock | BlockParameter object |
FromAddress | Address[] object |
ToAddress | Address[] object |
After | Quantity |
Count | Quantity |
BlockParameter
Field name | Type |
---|---|
Type | BlockParameterType object |
BlockNumber | Quantity |
BlockHash | Hash |
RequireCanonical | Boolean |
Address[]
Field name | Type |
---|---|
Zero | Address |
SystemUser | Address |
Bytes | Data |
Item | Data |
Traces a call to eth_sendRawTransaction without making the call, returning the traces
Invocation |
---|
trace.rawTransaction(data, traceTypes) |
Parameter | Type | Description |
---|---|---|
data | Data | |
traceTypes | Array | Possible values : ["VmTrace", "StateDiff", "Trace", "Rewards", "All"] |
Returned type | Description |
---|---|
ParityTxTraceFromReplay object | |
Example request of trace.rawTransaction
Example response of trace.rawTransaction
Objects in trace_rawTransaction
trace.rawTransaction(data, traceTypes)
"output":"0x","stateDiff":null,"trace":[{"action":{"callType":"call","from":"0xc451c26cc24c25e46b148ac4716804c12c34e7d2","gas":"0x0","input":"0x","to":"0xb943b13292086848d8180d75c73361107920bb1a","value":"0x0"},"result":{"gasUsed":"0x0","output":"0x"},"subtraces":0,"traceAddress":[],"type":"call"}],"vmTrace":null
ParityTxTraceFromReplay
Field name | Type |
---|---|
Output | Data |
TransactionHash | Hash |
VmTrace | ParityVmTrace object |
Action | ParityTraceAction object |
StateChanges | Array |
ParityVmTrace
Field name | Type |
---|---|
Code | Data |
Operations | ParityVmOperationTrace[] object |
ParityTraceAction
Field name | Type |
---|---|
TraceAddress | Array |
CallType | String |
IncludeInTrace | Boolean |
IsPrecompiled | Boolean |
Type | String |
CreationMethod | String |
From | Address |
To | Address |
Gas | Quantity |
Value | Quantity |
Input | Data |
Result | ParityTraceResult object |
Subtraces | Array |
Author | Address |
RewardType | String |
Error | String |
Replays all transactions in a block returning the requested traces for each transaction.
Invocation |
---|
trace.replayBlockTransactions(blockParameter, traceTypes) |
Parameter | Type | Description |
---|---|---|
blockParameter | BlockParameter object | |
traceTypes | Array | Possible values : ["VmTrace", "StateDiff", "Trace", "Rewards", "All"] |
Returned type | Description |
---|---|
Array | |
Example request of trace.replayBlockTransactions
Example response of trace.replayBlockTransactions
Objects in trace_replayBlockTransactions
trace.replayBlockTransactions(blockParameter, traceTypes)
[{"output":"0x0000000000000000000000000000000000000000000000000000000000000001","stateDiff":null,"trace":[{"action":{"callType":"call","from":"0x37f207b3ebda37de11ad2b6d306464e313c4841a","gas":"0x3c36","input":"0xa9059cbb000000000000000000000000d20d2f4c0b595abedef821a4157b0b990a37dae60000000000000000000000000000000000000000000000008ac7230489e80000","to":"0x59a524d1f5dcbde3224fd42171795283596a8103","value":"0x0"},"result":{"gasUsed":"0x3c36","output":"0x0000000000000000000000000000000000000000000000000000000000000001"},"subtraces":0,"traceAddress":[],"type":"call"}],"transactionHash":"0x17dc0fef36bb997c79ee2a0a126d059227000a2d47c9bbd1f49b5902a4e7385a","vmTrace":null}, (...)]
BlockParameter
Field name | Type |
---|---|
Type | BlockParameterType object |
BlockNumber | Quantity |
BlockHash | Hash |
RequireCanonical | Boolean |
BlockParameterType
Quantity
orString
(latest, earliest, pending)