Versions in this module Expand all Collapse all v0 v0.6.3 Nov 22, 2024 Changes in this version + const AccountRangeMaxResults + var ErrUnfinalizedData = errors.New("cannot query unfinalized data") + type AdminAPI struct + func NewAdminAPI(eth *Ethereum) *AdminAPI + func (api *AdminAPI) ExportChain(file string, first *uint64, last *uint64) (bool, error) + func (api *AdminAPI) ImportChain(file string) (bool, error) + type Config = ethconfig.Config + type DebugAPI struct + func NewDebugAPI(eth *Ethereum) *DebugAPI + func (api *DebugAPI) AccountRange(blockNrOrHash rpc.BlockNumberOrHash, start hexutil.Bytes, maxResults int, ...) (state.Dump, error) + func (api *DebugAPI) DumpBlock(blockNr rpc.BlockNumber) (state.Dump, error) + func (api *DebugAPI) GetAccessibleState(from, to rpc.BlockNumber) (uint64, error) + func (api *DebugAPI) GetBadBlocks(ctx context.Context) ([]*ethapi.BadBlockArgs, error) + func (api *DebugAPI) GetModifiedAccountsByHash(startHash common.Hash, endHash *common.Hash) ([]common.Address, error) + func (api *DebugAPI) GetModifiedAccountsByNumber(startNum uint64, endNum *uint64) ([]common.Address, error) + func (api *DebugAPI) Preimage(ctx context.Context, hash common.Hash) (hexutil.Bytes, error) + func (api *DebugAPI) StorageRangeAt(ctx context.Context, blockNrOrHash rpc.BlockNumberOrHash, txIndex int, ...) (StorageRangeResult, error) + type EthAPIBackend struct + func (b *EthAPIBackend) AccountManager() *accounts.Manager + func (b *EthAPIBackend) BadBlocks() ([]*types.Block, []*core.BadBlockReason) + func (b *EthAPIBackend) BlockByHash(ctx context.Context, hash common.Hash) (*types.Block, error) + func (b *EthAPIBackend) BlockByNumber(ctx context.Context, number rpc.BlockNumber) (*types.Block, error) + func (b *EthAPIBackend) BlockByNumberOrHash(ctx context.Context, blockNrOrHash rpc.BlockNumberOrHash) (*types.Block, error) + func (b *EthAPIBackend) BloomStatus() (uint64, uint64) + func (b *EthAPIBackend) ChainConfig() *params.ChainConfig + func (b *EthAPIBackend) ChainDb() ethdb.Database + func (b *EthAPIBackend) CurrentBlock() *types.Header + func (b *EthAPIBackend) CurrentHeader() *types.Header + func (b *EthAPIBackend) Engine() consensus.Engine + func (b *EthAPIBackend) EstimateBaseFee(ctx context.Context) (*big.Int, error) + func (b *EthAPIBackend) EventMux() *event.TypeMux + func (b *EthAPIBackend) ExtRPCEnabled() bool + func (b *EthAPIBackend) FeeHistory(ctx context.Context, blockCount uint64, lastBlock rpc.BlockNumber, ...) (firstBlock *big.Int, reward [][]*big.Int, baseFee []*big.Int, ...) + func (b *EthAPIBackend) GetBody(ctx context.Context, hash common.Hash, number rpc.BlockNumber) (*types.Body, error) + func (b *EthAPIBackend) GetEVM(ctx context.Context, msg *core.Message, state *state.StateDB, ...) *vm.EVM + func (b *EthAPIBackend) GetFeeConfigAt(parent *types.Header) (commontype.FeeConfig, *big.Int, error) + func (b *EthAPIBackend) GetLogs(ctx context.Context, hash common.Hash, number uint64) ([][]*types.Log, error) + func (b *EthAPIBackend) GetMaxBlocksPerRequest() int64 + func (b *EthAPIBackend) GetPoolNonce(ctx context.Context, addr common.Address) (uint64, error) + func (b *EthAPIBackend) GetPoolTransaction(hash common.Hash) *types.Transaction + func (b *EthAPIBackend) GetPoolTransactions() (types.Transactions, error) + func (b *EthAPIBackend) GetReceipts(ctx context.Context, hash common.Hash) (types.Receipts, error) + func (b *EthAPIBackend) GetTransaction(ctx context.Context, txHash common.Hash) (*types.Transaction, common.Hash, uint64, uint64, error) + func (b *EthAPIBackend) HeaderByHash(ctx context.Context, hash common.Hash) (*types.Header, error) + func (b *EthAPIBackend) HeaderByNumber(ctx context.Context, number rpc.BlockNumber) (*types.Header, error) + func (b *EthAPIBackend) HeaderByNumberOrHash(ctx context.Context, blockNrOrHash rpc.BlockNumberOrHash) (*types.Header, error) + func (b *EthAPIBackend) IsAllowUnfinalizedQueries() bool + func (b *EthAPIBackend) LastAcceptedBlock() *types.Block + func (b *EthAPIBackend) MinRequiredTip(ctx context.Context, header *types.Header) (*big.Int, error) + func (b *EthAPIBackend) RPCEVMTimeout() time.Duration + func (b *EthAPIBackend) RPCGasCap() uint64 + func (b *EthAPIBackend) RPCTxFeeCap() float64 + func (b *EthAPIBackend) SendTx(ctx context.Context, signedTx *types.Transaction) error + func (b *EthAPIBackend) ServiceFilter(ctx context.Context, session *bloombits.MatcherSession) + func (b *EthAPIBackend) SetAllowUnfinalizedQueries(allow bool) + func (b *EthAPIBackend) StateAndHeaderByNumber(ctx context.Context, number rpc.BlockNumber) (*state.StateDB, *types.Header, error) + func (b *EthAPIBackend) StateAndHeaderByNumberOrHash(ctx context.Context, blockNrOrHash rpc.BlockNumberOrHash) (*state.StateDB, *types.Header, error) + func (b *EthAPIBackend) StateAtBlock(ctx context.Context, block *types.Block, reexec uint64, base *state.StateDB, ...) (*state.StateDB, tracers.StateReleaseFunc, error) + func (b *EthAPIBackend) StateAtNextBlock(ctx context.Context, parent, nextBlock *types.Block, reexec uint64, ...) (*state.StateDB, tracers.StateReleaseFunc, error) + func (b *EthAPIBackend) StateAtTransaction(ctx context.Context, block *types.Block, txIndex int, reexec uint64) (*core.Message, vm.BlockContext, *state.StateDB, tracers.StateReleaseFunc, ...) + func (b *EthAPIBackend) Stats() (runnable int, blocked int) + func (b *EthAPIBackend) SubscribeAcceptedLogsEvent(ch chan<- []*types.Log) event.Subscription + func (b *EthAPIBackend) SubscribeAcceptedTransactionEvent(ch chan<- core.NewTxsEvent) event.Subscription + func (b *EthAPIBackend) SubscribeChainAcceptedEvent(ch chan<- core.ChainEvent) event.Subscription + func (b *EthAPIBackend) SubscribeChainEvent(ch chan<- core.ChainEvent) event.Subscription + func (b *EthAPIBackend) SubscribeChainHeadEvent(ch chan<- core.ChainHeadEvent) event.Subscription + func (b *EthAPIBackend) SubscribeChainSideEvent(ch chan<- core.ChainSideEvent) event.Subscription + func (b *EthAPIBackend) SubscribeLogsEvent(ch chan<- []*types.Log) event.Subscription + func (b *EthAPIBackend) SubscribeNewTxsEvent(ch chan<- core.NewTxsEvent) event.Subscription + func (b *EthAPIBackend) SubscribePendingLogsEvent(ch chan<- []*types.Log) event.Subscription + func (b *EthAPIBackend) SubscribeRemovedLogsEvent(ch chan<- core.RemovedLogsEvent) event.Subscription + func (b *EthAPIBackend) SuggestGasTipCap(ctx context.Context) (*big.Int, error) + func (b *EthAPIBackend) SuggestPrice(ctx context.Context) (*big.Int, error) + func (b *EthAPIBackend) TxPoolContent() (map[common.Address][]*types.Transaction, ...) + func (b *EthAPIBackend) TxPoolContentFrom(addr common.Address) ([]*types.Transaction, []*types.Transaction) + func (b *EthAPIBackend) UnprotectedAllowed(tx *types.Transaction) bool + type Ethereum struct + APIBackend *EthAPIBackend + func New(stack *node.Node, config *Config, gossiper PushGossiper, ...) (*Ethereum, error) + func (eth *Ethereum) StateAtNextBlock(ctx context.Context, parent *types.Block, nextBlock *types.Block, ...) (*state.StateDB, tracers.StateReleaseFunc, error) + func (s *Ethereum) APIs() []rpc.API + func (s *Ethereum) AccountManager() *accounts.Manager + func (s *Ethereum) ArchiveMode() bool + func (s *Ethereum) BlockChain() *core.BlockChain + func (s *Ethereum) BloomIndexer() *core.ChainIndexer + func (s *Ethereum) ChainDb() ethdb.Database + func (s *Ethereum) Engine() consensus.Engine + func (s *Ethereum) Etherbase() (eb common.Address, err error) + func (s *Ethereum) EventMux() *event.TypeMux + func (s *Ethereum) LastAcceptedBlock() *types.Block + func (s *Ethereum) Miner() *miner.Miner + func (s *Ethereum) NetVersion() uint64 + func (s *Ethereum) SetEtherbase(etherbase common.Address) + func (s *Ethereum) Start() + func (s *Ethereum) Stop() error + func (s *Ethereum) TxPool() *txpool.TxPool + type EthereumAPI struct + func NewEthereumAPI(e *Ethereum) *EthereumAPI + func (api *EthereumAPI) Coinbase() (common.Address, error) + func (api *EthereumAPI) Etherbase() (common.Address, error) + type PushGossiper interface + Add func(*types.Transaction) + type Settings struct + MaxBlocksPerRequest int64 + var DefaultSettings Settings = Settings{ ... } + type StorageRangeResult struct + NextKey *common.Hash + Storage storageMap