Documentation ¶
Overview ¶
Package debug implements RPC API bindings for methods in the "debug" namespace.
Index ¶
- func CallTraceCall(msg *w3types.Message, blockNumber *big.Int, overrides w3types.State) w3types.RPCCallerFactory[CallTrace]
- func CallTraceTx(txHash common.Hash, overrides w3types.State) w3types.RPCCallerFactory[CallTrace]
- func TraceCall(msg *w3types.Message, blockNumber *big.Int, config *TraceConfig) w3types.RPCCallerFactory[Trace]
- func TraceTx(txHash common.Hash, config *TraceConfig) w3types.RPCCallerFactory[Trace]
- type CallTrace
- type StructLog
- type Trace
- type TraceConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallTraceCall ¶
func CallTraceCall(msg *w3types.Message, blockNumber *big.Int, overrides w3types.State) w3types.RPCCallerFactory[CallTrace]
CallTraceCall requests the call trace of the given message.
func CallTraceTx ¶
CallTraceTx requests the call trace of the transaction with the given hash.
func TraceCall ¶
func TraceCall(msg *w3types.Message, blockNumber *big.Int, config *TraceConfig) w3types.RPCCallerFactory[Trace]
TraceCall requests the trace of the given message.
func TraceTx ¶
func TraceTx(txHash common.Hash, config *TraceConfig) w3types.RPCCallerFactory[Trace]
TraceTx requests the trace of the transaction with the given hash.
Types ¶
type CallTrace ¶
type CallTrace struct { From common.Address To common.Address Type string Gas uint64 GasUsed uint64 Value *big.Int Input []byte Output []byte Error string Calls []*CallTrace }
func (*CallTrace) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler.
type StructLog ¶
type StructLog struct { Pc uint64 Depth uint Gas uint64 GasCost uint Op vm.OpCode Stack []uint256.Int Memory []byte Storage map[common.Hash]common.Hash }
func (*StructLog) UnmarshalJSON ¶
type TraceConfig ¶
type TraceConfig struct { Overrides w3types.State // Override account state EnableStack bool // Enable stack capture EnableMemory bool // Enable memory capture EnableStorage bool // Enable storage capture Limit uint64 // Maximum number of StructLog's to capture (all if zero) }
func (*TraceConfig) MarshalJSON ¶
func (c *TraceConfig) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler.
Click to show internal directories.
Click to hide internal directories.