Versions in this module Expand all Collapse all v1 v1.4.2 Oct 4, 2021 v1.4.1 Oct 4, 2021 Changes in this version + const AccountRangeMaxResults + const BlockBodiesMsg + const BlockHeadersMsg + const ErrDecode + const ErrExtraStatusMsg + const ErrForkIDRejected + const ErrGenesisMismatch + const ErrInvalidMsgCode + const ErrMsgTooLarge + const ErrNetworkIDMismatch + const ErrNoStatusMsg + const ErrProtocolVersionMismatch + const GetBlockBodiesMsg + const GetBlockHeadersMsg + const GetNodeDataMsg + const GetPooledTransactionsMsg + const GetReceiptsMsg + const NewBlockHashesMsg + const NewBlockMsg + const NewPooledTransactionHashesMsg + const NodeDataMsg + const PooledTransactionsMsg + const ReceiptsMsg + const StatusMsg + const TransactionMsg + var DefaultConfig = Config + func CreateConsensusEngine(stack *node.Node, chainConfig *params.ChainConfig, config *Config, ...) consensus.Engine + func NewBloomIndexer(db ethdb.Database, size, confirms uint64, fullChainAvailable bool) *core.ChainIndexer + type BadBlockArgs struct + Block map[string]interface{} + Hash common.Hash + RLP string + type BloomIndexer struct + func (b *BloomIndexer) Commit() error + func (b *BloomIndexer) Process(ctx context.Context, header *types.Header) error + func (b *BloomIndexer) Prune(threshold uint64) error + func (b *BloomIndexer) Reset(ctx context.Context, section uint64, lastSectionHead common.Hash) error + type Config struct + BLSbase common.Address + Checkpoint *params.TrustedCheckpoint + CheckpointOracle *params.CheckpointOracleConfig + DatabaseCache int + DatabaseFreezer string + DatabaseHandles int + DiscoveryURLs []string + DocRoot string + EVMInterpreter string + EWASMInterpreter string + EnablePreimageRecording bool + GatewayFee *big.Int + Genesis *core.Genesis + Istanbul istanbul.Config + LightEgress int + LightIngress int + LightNoPrune bool + LightPeers int + LightServ int + Miner miner.Config + NetworkId uint64 + NoPrefetch bool + NoPruning bool + OverrideEHardfork *big.Int + RPCGasCap uint64 + RPCTxFeeCap float64 + SkipBcVersionCheck bool + SnapshotCache int + SyncMode downloader.SyncMode + TrieCleanCache int + TrieCleanCacheJournal string + TrieCleanCacheRejournal time.Duration + TrieDirtyCache int + TrieTimeout time.Duration + TxFeeRecipient common.Address + TxLookupLimit uint64 + TxPool core.TxPoolConfig + UltraLightFraction int + UltraLightOnlyAnnounce bool + UltraLightServers []string + Validator common.Address + Whitelist map[uint64]common.Hash + func (c *Config) UnmarshalTOML(unmarshal func(interface{}) error) error + func (c Config) MarshalTOML() (interface{}, error) + type EthAPIBackend struct + func (b *EthAPIBackend) AccountManager() *accounts.Manager + 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.Block + func (b *EthAPIBackend) CurrentHeader() *types.Header + func (b *EthAPIBackend) Downloader() *downloader.Downloader + func (b *EthAPIBackend) Engine() consensus.Engine + func (b *EthAPIBackend) EventMux() *event.TypeMux + func (b *EthAPIBackend) ExtRPCEnabled() bool + func (b *EthAPIBackend) GatewayFee() *big.Int + func (b *EthAPIBackend) GatewayFeeRecipient() common.Address + func (b *EthAPIBackend) GetBlockGasLimit(ctx context.Context, blockNrOrHash rpc.BlockNumberOrHash) uint64 + func (b *EthAPIBackend) GetEVM(ctx context.Context, msg core.Message, state *state.StateDB, ...) (*vm.EVM, func() error, error) + func (b *EthAPIBackend) GetIntrinsicGasForAlternativeFeeCurrency(ctx context.Context) uint64 + func (b *EthAPIBackend) GetLogs(ctx context.Context, hash common.Hash) ([][]*types.Log, error) + 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) GetTd(ctx context.Context, hash common.Hash) *big.Int + 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) Miner() *miner.Miner + func (b *EthAPIBackend) NewEVMRunner(header *types.Header, state vm.StateDB) vm.EVMRunner + func (b *EthAPIBackend) ProtocolVersion() int + 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) SetHead(number uint64) + func (b *EthAPIBackend) StartMining() error + 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) Stats() (pending int, queued int) + 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) SuggestPrice(ctx context.Context, currencyAddress *common.Address) (*big.Int, error) + func (b *EthAPIBackend) TxPool() *core.TxPool + func (b *EthAPIBackend) TxPoolContent() (map[common.Address]types.Transactions, map[common.Address]types.Transactions) + type Ethereum struct + APIBackend *EthAPIBackend + func New(stack *node.Node, config *Config) (*Ethereum, error) + func (s *Ethereum) APIs() []rpc.API + func (s *Ethereum) AccountManager() *accounts.Manager + func (s *Ethereum) ArchiveMode() bool + func (s *Ethereum) BLSbase() (eb common.Address, err error) + func (s *Ethereum) BlockChain() *core.BlockChain + func (s *Ethereum) BloomIndexer() *core.ChainIndexer + func (s *Ethereum) ChainDb() ethdb.Database + func (s *Ethereum) Config() *Config + func (s *Ethereum) Downloader() *downloader.Downloader + func (s *Ethereum) Engine() consensus.Engine + func (s *Ethereum) EthVersion() int + func (s *Ethereum) EventMux() *event.TypeMux + func (s *Ethereum) GatewayFee() *big.Int + func (s *Ethereum) GatewayFeeRecipient() common.Address + func (s *Ethereum) IsListening() bool + func (s *Ethereum) IsMining() bool + func (s *Ethereum) Miner() *miner.Miner + func (s *Ethereum) NetVersion() uint64 + func (s *Ethereum) Protocols() []p2p.Protocol + func (s *Ethereum) ResetWithGenesisBlock(gb *types.Block) + func (s *Ethereum) SetTxFeeRecipient(txFeeRecipient common.Address) + func (s *Ethereum) SetValidator(validator common.Address) + func (s *Ethereum) Start() error + func (s *Ethereum) StartMining() error + func (s *Ethereum) Stop() error + func (s *Ethereum) StopMining() + func (s *Ethereum) Synced() bool + func (s *Ethereum) TxFeeRecipient() (common.Address, error) + func (s *Ethereum) TxPool() *core.TxPool + func (s *Ethereum) Validator() (val common.Address, err error) + type NodeInfo struct + Config *params.ChainConfig + Difficulty *big.Int + Genesis common.Hash + Head common.Hash + Network uint64 + type PeerInfo struct + Difficulty *big.Int + Head string + Version int + type PrivateAdminAPI struct + func NewPrivateAdminAPI(eth *Ethereum) *PrivateAdminAPI + func (api *PrivateAdminAPI) ExportChain(file string, first *uint64, last *uint64) (bool, error) + func (api *PrivateAdminAPI) ImportChain(file string) (bool, error) + type PrivateDebugAPI struct + func NewPrivateDebugAPI(eth *Ethereum) *PrivateDebugAPI + func (api *PrivateDebugAPI) GetBadBlocks(ctx context.Context) ([]*BadBlockArgs, error) + func (api *PrivateDebugAPI) GetModifiedAccountsByHash(startHash common.Hash, endHash *common.Hash) ([]common.Address, error) + func (api *PrivateDebugAPI) GetModifiedAccountsByNumber(startNum uint64, endNum *uint64) ([]common.Address, error) + func (api *PrivateDebugAPI) Preimage(ctx context.Context, hash common.Hash) (hexutil.Bytes, error) + func (api *PrivateDebugAPI) StandardTraceBadBlockToFile(ctx context.Context, hash common.Hash, config *StdTraceConfig) ([]string, error) + func (api *PrivateDebugAPI) StandardTraceBlockToFile(ctx context.Context, hash common.Hash, config *StdTraceConfig) ([]string, error) + func (api *PrivateDebugAPI) StorageRangeAt(blockHash common.Hash, txIndex int, contractAddress common.Address, ...) (StorageRangeResult, error) + func (api *PrivateDebugAPI) TraceBadBlock(ctx context.Context, hash common.Hash, config *TraceConfig) ([]*txTraceResult, error) + func (api *PrivateDebugAPI) TraceBlock(ctx context.Context, blob []byte, config *TraceConfig) ([]*txTraceResult, error) + func (api *PrivateDebugAPI) TraceBlockByHash(ctx context.Context, hash common.Hash, config *TraceConfig) ([]*txTraceResult, error) + func (api *PrivateDebugAPI) TraceBlockByNumber(ctx context.Context, number rpc.BlockNumber, config *TraceConfig) ([]*txTraceResult, error) + func (api *PrivateDebugAPI) TraceBlockFromFile(ctx context.Context, file string, config *TraceConfig) ([]*txTraceResult, error) + func (api *PrivateDebugAPI) TraceChain(ctx context.Context, start, end rpc.BlockNumber, config *TraceConfig) (*rpc.Subscription, error) + func (api *PrivateDebugAPI) TraceTransaction(ctx context.Context, hash common.Hash, config *TraceConfig) (interface{}, error) + type PrivateMinerAPI struct + func NewPrivateMinerAPI(e *Ethereum) *PrivateMinerAPI + func (api *PrivateMinerAPI) SetEtherbase(etherbase common.Address) bool + func (api *PrivateMinerAPI) SetExtra(extra string) (bool, error) + func (api *PrivateMinerAPI) SetGasPrice(gasPrice hexutil.Big) bool + func (api *PrivateMinerAPI) Start() error + func (api *PrivateMinerAPI) Stop() + type ProtocolManager struct + func NewProtocolManager(config *params.ChainConfig, checkpoint *params.TrustedCheckpoint, ...) (*ProtocolManager, error) + func (pm *ProtocolManager) BroadcastBlock(block *types.Block, propagate bool) + func (pm *ProtocolManager) BroadcastTransactions(txs types.Transactions, propagate bool) + func (pm *ProtocolManager) Enqueue(id string, block *types.Block) + func (pm *ProtocolManager) FindPeers(targets map[enode.ID]bool, purpose p2p.PurposeFlag) map[enode.ID]consensus.Peer + func (pm *ProtocolManager) NodeInfo() *NodeInfo + func (pm *ProtocolManager) Start(maxPeers int) + func (pm *ProtocolManager) Stop() + type PublicDebugAPI struct + func NewPublicDebugAPI(eth *Ethereum) *PublicDebugAPI + func (api *PublicDebugAPI) AccountRange(blockNrOrHash rpc.BlockNumberOrHash, start []byte, maxResults int, ...) (state.IteratorDump, error) + func (api *PublicDebugAPI) DumpBlock(blockNr rpc.BlockNumber) (state.Dump, error) + type PublicEthereumAPI struct + func NewPublicEthereumAPI(e *Ethereum) *PublicEthereumAPI + func (api *PublicEthereumAPI) ChainId() hexutil.Uint64 + func (api *PublicEthereumAPI) Coinbase() (common.Address, error) + func (api *PublicEthereumAPI) TxFeeRecipient() (common.Address, error) + func (api *PublicEthereumAPI) Validator() (common.Address, error) + type PublicMinerAPI struct + func NewPublicMinerAPI(e *Ethereum) *PublicMinerAPI + func (api *PublicMinerAPI) Mining() bool + type StdTraceConfig struct + Reexec *uint64 + TxHash common.Hash + type StorageRangeResult struct + NextKey *common.Hash + Storage storageMap + type TraceConfig struct + Reexec *uint64 + Timeout *string + Tracer *string