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 RevertReason 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 { Tracer string `json:"tracer,omitempty"` TracerConfig interface{} `json:"tracerConfig,omitempty"` Overrides w3types.State `json:"stateOverrides,omitempty"` EnableStack bool `json:"enableStack,omitempty"` EnableMemory bool `json:"enableMemory,omitempty"` EnableStorage bool `json:"enableStorage,omitempty"` EnableReturnData bool `json:"enableReturnData,omitempty"` Limit uint64 `json:"limit,omitempty"` }
func (*TraceConfig) MarshalJSON ¶
func (c *TraceConfig) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler.
Click to show internal directories.
Click to hide internal directories.