Versions in this module Expand all Collapse all v0 v0.6.3 Nov 21, 2024 Changes in this version + var DefaultDirectory = directory + func APIs(backend Backend) []rpc.API + func GetMemoryCopyPadded(m *vm.Memory, offset, size int64) ([]byte, error) + 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) TraceBadBlock(ctx context.Context, hash common.Hash, config *TraceConfig) ([]*txTraceResult, error) + func (api *API) TraceBlock(ctx context.Context, blob hexutil.Bytes, 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) 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 + BadBlocks func() ([]*types.Block, []*core.BadBlockReason) + 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, StateReleaseFunc, error) + StateAtNextBlock func(ctx context.Context, parent, block *types.Block, reexec uint64, ...) (*state.StateDB, StateReleaseFunc, error) + StateAtTransaction func(ctx context.Context, block *types.Block, txIndex int, reexec uint64) (*core.Message, vm.BlockContext, *state.StateDB, StateReleaseFunc, error) + type Context struct + BlockHash common.Hash + BlockNumber *big.Int + TxHash common.Hash + TxIndex int + type FileTracerAPI struct + func NewFileTracerAPI(backend Backend) *FileTracerAPI + func (api *FileTracerAPI) StandardTraceBadBlockToFile(ctx context.Context, hash common.Hash, config *StdTraceConfig) ([]string, error) + func (api *FileTracerAPI) StandardTraceBlockToFile(ctx context.Context, hash common.Hash, config *StdTraceConfig) ([]string, error) + func (api *FileTracerAPI) TraceBlock(ctx context.Context, blob hexutil.Bytes, config *TraceConfig) ([]*txTraceResult, error) + func (api *FileTracerAPI) TraceBlockFromFile(ctx context.Context, file string, config *TraceConfig) ([]*txTraceResult, error) + type StateReleaseFunc func() + type StdTraceConfig struct + Reexec *uint64 + TxHash common.Hash + type TraceCallConfig struct + BlockOverrides *ethapi.BlockOverrides + StateOverrides *ethapi.StateOverride + type TraceConfig struct + Reexec *uint64 + Timeout *string + Tracer *string + TracerConfig json.RawMessage + type Tracer interface + GetResult func() (json.RawMessage, error) + Stop func(err error)