Trace module

trace.block

Returns traces created at given block.

Invocation

trace.block(numberOrTag)

Parameter

Type

Description

numberOrTag

BlockParameter object

Returned type

Description

ParityTxTraceFromStore object

Example request of trace.block
Objects in trace_block
Example request of trace.block
trace.block(numberOrTag)
Objects in trace_block

BlockParameter

Field name

Type

Type

BlockParameterType object

BlockNumber

Quantity

BlockHash

Hash

RequireCanonical

Boolean

BlockParameterType

  • Quantity or String (latest, earliest, pending)

ParityTxTraceFromStore

Field name

Type

Action

ParityTraceAction object

BlockHash

Hash

BlockNumber

Quantity

Result

ParityTraceResult object

Subtraces

Quantity

TraceAddress

Array

TransactionHash

Hash

TransactionPosition

Quantity

Type

String

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

ParityTraceResult

Field name

Type

GasUsed

Quantity

Output

Data

Address

Address

Code

Data

See also JSON RPC trace_block

trace.rawTransaction

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

Returned type

Description

ParityTxTraceFromReplay object

Example request of trace.rawTransaction
Objects in trace_rawTransaction
Example request of trace.rawTransaction
trace.rawTransaction(data, traceTypes)
Objects in trace_rawTransaction

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

See also JSON RPC trace_rawTransaction

trace.replayBlockTransactions

Replays all transactions in a block returning the requested traces for each transaction.

Invocation

trace.replayBlockTransactions(numberOrTag, traceTypes)

Parameter

Type

Description

numberOrTag

BlockParameter object

traceTypes

Array

Returned type

Description

ParityTxTraceFromReplay object

Example request of trace.replayBlockTransactions
Objects in trace_replayBlockTransactions
Example request of trace.replayBlockTransactions
trace.replayBlockTransactions(numberOrTag, traceTypes)
Objects in trace_replayBlockTransactions

BlockParameter

Field name

Type

Type

BlockParameterType object

BlockNumber

Quantity

BlockHash

Hash

RequireCanonical

Boolean

BlockParameterType

  • Quantity or String (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

See also JSON RPC trace_replayBlockTransactions

trace.replayTransaction

Replays a transaction, returning the traces.

Invocation

trace.replayTransaction(txHash, traceTypes)

Parameter

Type

Description

txHash

Hash

traceTypes

Array

Returned type

Description

ParityTxTraceFromReplay object

Example request of trace.replayTransaction
Objects in trace_replayTransaction
Example request of trace.replayTransaction
trace.replayTransaction(txHash, traceTypes)
Objects in trace_replayTransaction

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

See also JSON RPC trace_replayTransaction

trace.transaction

Returns all traces of given transaction

Invocation

trace.transaction(txHash)

Parameter

Type

Description

txHash

Hash

Returned type

Description

ParityTxTraceFromStore object

Example request of trace.transaction
Objects in trace_transaction
Example request of trace.transaction
trace.transaction(txHash)
Objects in trace_transaction

ParityTxTraceFromStore

Field name

Type

Action

ParityTraceAction object

BlockHash

Hash

BlockNumber

Quantity

Result

ParityTraceResult object

Subtraces

Quantity

TraceAddress

Array

TransactionHash

Hash

TransactionPosition

Quantity

Type

String

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

ParityTraceResult

Field name

Type

GasUsed

Quantity

Output

Data

Address

Address

Code

Data

See also JSON RPC trace_transaction