Versions in this module Expand all Collapse all v1 v1.0.0 May 9, 2022 Changes in this version + func APIs(backend Backend) []rpc.API + func RegisterLookup(wildcard bool, lookup lookupFunc) + type API struct + func NewAPI(backend Backend) *API + func (api *API) IntermediateRoots(ctx context.Context, hash common.Hash, config *TraceConfig) ([]common.Hash, error) + func (api *API) StandardTraceBadBlockToFile(ctx context.Context, hash common.Hash, config *StdTraceConfig) ([]string, error) + func (api *API) StandardTraceBlockToFile(ctx context.Context, hash common.Hash, config *StdTraceConfig) ([]string, error) + func (api *API) TraceBadBlock(ctx context.Context, hash common.Hash, config *TraceConfig) ([]*txTraceResult, error) + func (api *API) TraceBlock(ctx context.Context, blob []byte, config *TraceConfig) ([]*txTraceResult, error) + func (api *API) TraceBlockByHash(ctx context.Context, hash common.Hash, config *TraceConfig) ([]*txTraceResult, error) + func (api *API) TraceBlockByNumber(ctx context.Context, number rpc.BlockNumber, config *TraceConfig) ([]*txTraceResult, error) + func (api *API) TraceBlockFromFile(ctx context.Context, file string, config *TraceConfig) ([]*txTraceResult, error) + func (api *API) TraceCall(ctx context.Context, args ethapi.TransactionArgs, ...) (interface{}, error) + func (api *API) TraceChain(ctx context.Context, start, end rpc.BlockNumber, config *TraceConfig) (*rpc.Subscription, error) + func (api *API) TraceTransaction(ctx context.Context, hash common.Hash, config *TraceConfig) (interface{}, error) + type Backend interface + BlockByHash func(ctx context.Context, hash common.Hash) (*types.Block, error) + BlockByNumber func(ctx context.Context, number rpc.BlockNumber) (*types.Block, error) + ChainConfig func() *params.ChainConfig + ChainDb func() ethdb.Database + Engine func() consensus.Engine + GetTransaction func(ctx context.Context, txHash common.Hash) (*types.Transaction, common.Hash, uint64, uint64, error) + HeaderByHash func(ctx context.Context, hash common.Hash) (*types.Header, error) + HeaderByNumber func(ctx context.Context, number rpc.BlockNumber) (*types.Header, error) + RPCGasCap func() uint64 + StateAtBlock func(ctx context.Context, block *types.Block, reexec uint64, base *state.StateDB, ...) (*state.StateDB, error) + StateAtTransaction func(ctx context.Context, block *types.Block, txIndex int, reexec uint64) (core.Message, vm.BlockContext, *state.StateDB, error) + type Context struct + BlockHash common.Hash + TxHash common.Hash + TxIndex int + type StdTraceConfig struct + Reexec *uint64 + TxHash common.Hash + type TraceCallConfig struct + Reexec *uint64 + StateOverrides *ethapi.StateOverride + Timeout *string + Tracer *string + type TraceConfig struct + Reexec *uint64 + Timeout *string + Tracer *string + type Tracer interface + GetResult func() (json.RawMessage, error) + Stop func(err error) + func New(code string, ctx *Context) (Tracer, error)