Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadTracer ¶
ReadTracer reads a tracer file from the filesystem
Types ¶
type DebugClient ¶
type DebugClient struct {
// contains filtered or unexported fields
}
DebugClient defines typed wrappers for the Debug RPC API.
func NewClient ¶
func NewClient(c *rpc.Client) *DebugClient
NewClient creates a client that uses the given RPC client.
func (*DebugClient) TraceTransaction ¶
func (dc *DebugClient) TraceTransaction(ctx context.Context, result interface{}, txhash common.Hash, traceConfig *eth.TraceConfig) error
TraceTransactions performs a tracer over a transaction. Can use a custom tracer or default one result type depends on the tracer, and it's the caller reponsability to use the proper one
func (*DebugClient) TransactionTransfers ¶
type Transfer ¶
type Transfer struct { From common.Address `json:"from"` To common.Address `json:"to"` Value *big.Int `json:"value"` Status TransferStatus `json:"status"` }
func (*Transfer) UnmarshalJSON ¶
UnmarshalJSON unmarshals from JSON.
type TransferStatus ¶
type TransferStatus string
const ( TransferStatusSuccess TransferStatus = "success" TransferStatusRevert TransferStatus = "revert" )
func (TransferStatus) String ¶
func (ts TransferStatus) String() string
Click to show internal directories.
Click to hide internal directories.