Documentation
¶
Index ¶
- Constants
- type Config
- type ErigonResult
- type ErigonStructLog
- type Node
- func (n *Node) BlockByNumber(ctx context.Context, blockNumber *big.Int) (*types.Block, error)
- func (n *Node) BlockNumber(ctx context.Context) (*uint64, error)
- func (n *Node) BlockReceipts(ctx context.Context, blockNumber *big.Int) ([]*types.Receipt, error)
- func (n *Node) DebugTraceTransaction(ctx context.Context, hash string, blockNumber *big.Int, options TraceOptions) (*TraceTransaction, error)
- func (n *Node) Metadata() *services.MetadataService
- func (n *Node) Name() string
- func (n *Node) OnReady(_ context.Context, callback func(ctx context.Context) error)
- func (n *Node) Start(ctx context.Context) error
- func (n *Node) Stop(ctx context.Context) error
- func (n *Node) TransactionReceipt(ctx context.Context, hash string) (*types.Receipt, error)
- type StructLog
- type TraceOptions
- type TraceTransaction
Constants ¶
View Source
const ( STATUS_ERROR = "error" STATUS_SUCCESS = "success" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type ErigonResult ¶
type ErigonResult struct {
Gas uint64 `json:"gas"`
Failed bool `json:"failed"`
ReturnValue *string `json:"returnValue"`
// empty array on transfer
StructLogs []ErigonStructLog `json:"structLogs"`
}
type ErigonStructLog ¶
type ErigonStructLog struct {
PC uint32 `json:"pc"`
Op string `json:"op"`
Gas uint64 `json:"gas"`
GasCost uint64 `json:"gasCost"`
Depth uint64 `json:"depth"`
ReturnData []byte `json:"returnData"`
Refund *uint64 `json:"refund,omitempty"`
Error *string `json:"error,omitempty"`
Stack *[]string `json:"stack,omitempty"`
}
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func (*Node) BlockByNumber ¶
func (*Node) BlockReceipts ¶ added in v0.1.0
BlockReceipts fetches all receipts for a block by number (much faster than per-tx).
func (*Node) DebugTraceTransaction ¶
func (n *Node) DebugTraceTransaction(ctx context.Context, hash string, blockNumber *big.Int, options TraceOptions) (*TraceTransaction, error)
DebugTraceTransaction traces a transaction execution using the client's debug API.
func (*Node) Metadata ¶
func (n *Node) Metadata() *services.MetadataService
type StructLog ¶
type StructLog struct {
PC uint32 `json:"pc"`
Op string `json:"op"`
Gas uint64 `json:"gas"`
GasCost uint64 `json:"gasCost"`
Depth uint64 `json:"depth"`
ReturnData *string `json:"returnData"`
Refund *uint64 `json:"refund,omitempty"`
Error *string `json:"error,omitempty"`
Stack *[]string `json:"stack,omitempty"`
}
type TraceOptions ¶ added in v0.0.11
type TraceOptions struct {
DisableStorage bool
DisableStack bool
DisableMemory bool
EnableReturnData bool
}
TraceOptions configures debug_traceTransaction parameters.
func DefaultTraceOptions ¶ added in v0.0.11
func DefaultTraceOptions() TraceOptions
DefaultTraceOptions returns standard options.
func StackTraceOptions ¶ added in v0.0.11
func StackTraceOptions() TraceOptions
StackTraceOptions returns options with stack enabled.
Click to show internal directories.
Click to hide internal directories.