Versions in this module Expand all Collapse all v1 v1.0.0 Oct 23, 2022 Changes in this version + var DefaultConfig = Config + func ConfigAddOptions(prefix string, f *flag.FlagSet) + func CreateFallbackClient(fallbackClientUrl string, fallbackClientTimeout time.Duration) (types.FallbackClient, error) + func EstimateGas(ctx context.Context, b ethapi.Backend, args TransactionArgs, ...) (hexutil.Uint64, error) + func HeaderByNumber(blockchain *core.BlockChain, number rpc.BlockNumber) *types.Header + func HeaderByNumberOrHash(blockchain *core.BlockChain, blockNrOrHash rpc.BlockNumberOrHash) (*types.Header, error) + func NewRevertReason(result *core.ExecutionResult) error + func PreimagesFromRecording(chainContextIf core.ChainContext, recordingDb *RecordingKV) (map[common.Hash][]byte, error) + type APIBackend struct + func (a *APIBackend) AccountManager() *accounts.Manager + func (a *APIBackend) BlockByHash(ctx context.Context, hash common.Hash) (*types.Block, error) + func (a *APIBackend) BlockByNumber(ctx context.Context, number rpc.BlockNumber) (*types.Block, error) + func (a *APIBackend) BlockByNumberOrHash(ctx context.Context, blockNrOrHash rpc.BlockNumberOrHash) (*types.Block, error) + func (a *APIBackend) BloomStatus() (uint64, uint64) + func (a *APIBackend) ChainConfig() *params.ChainConfig + func (a *APIBackend) ChainDb() ethdb.Database + func (a *APIBackend) CurrentBlock() *types.Block + func (a *APIBackend) CurrentHeader() *types.Header + func (a *APIBackend) Engine() consensus.Engine + func (a *APIBackend) ExtRPCEnabled() bool + func (a *APIBackend) FeeHistory(ctx context.Context, blocks int, newestBlock rpc.BlockNumber, ...) (*big.Int, [][]*big.Int, []*big.Int, []float64, error) + func (a *APIBackend) GetAPIs() []rpc.API + func (a *APIBackend) GetArbitrumNode() interface{} + func (a *APIBackend) GetEVM(ctx context.Context, msg core.Message, state *state.StateDB, ...) (*vm.EVM, func() error, error) + func (a *APIBackend) GetLogs(ctx context.Context, blockHash common.Hash) ([][]*types.Log, error) + func (a *APIBackend) GetPoolNonce(ctx context.Context, addr common.Address) (uint64, error) + func (a *APIBackend) GetPoolTransaction(txHash common.Hash) *types.Transaction + func (a *APIBackend) GetPoolTransactions() (types.Transactions, error) + func (a *APIBackend) GetReceipts(ctx context.Context, hash common.Hash) (types.Receipts, error) + func (a *APIBackend) GetTd(ctx context.Context, hash common.Hash) *big.Int + func (a *APIBackend) GetTransaction(ctx context.Context, txHash common.Hash) (*types.Transaction, common.Hash, uint64, uint64, error) + func (a *APIBackend) HeaderByHash(ctx context.Context, hash common.Hash) (*types.Header, error) + func (a *APIBackend) HeaderByNumber(ctx context.Context, number rpc.BlockNumber) (*types.Header, error) + func (a *APIBackend) HeaderByNumberOrHash(ctx context.Context, blockNrOrHash rpc.BlockNumberOrHash) (*types.Header, error) + func (a *APIBackend) RPCEVMTimeout() time.Duration + func (a *APIBackend) RPCGasCap() uint64 + func (a *APIBackend) RPCTxFeeCap() float64 + func (a *APIBackend) SendTx(ctx context.Context, signedTx *types.Transaction) error + func (a *APIBackend) ServiceFilter(ctx context.Context, session *bloombits.MatcherSession) + func (a *APIBackend) SetHead(number uint64) + func (a *APIBackend) StateAndHeaderByNumber(ctx context.Context, number rpc.BlockNumber) (*state.StateDB, *types.Header, error) + func (a *APIBackend) StateAndHeaderByNumberOrHash(ctx context.Context, blockNrOrHash rpc.BlockNumberOrHash) (*state.StateDB, *types.Header, error) + func (a *APIBackend) StateAtBlock(ctx context.Context, block *types.Block, reexec uint64, base *state.StateDB, ...) (statedb *state.StateDB, err error) + func (a *APIBackend) StateAtTransaction(ctx context.Context, block *types.Block, txIndex int, reexec uint64) (core.Message, vm.BlockContext, *state.StateDB, error) + func (a *APIBackend) Stats() (pending int, queued int) + func (a *APIBackend) SubscribeChainEvent(ch chan<- core.ChainEvent) event.Subscription + func (a *APIBackend) SubscribeChainHeadEvent(ch chan<- core.ChainHeadEvent) event.Subscription + func (a *APIBackend) SubscribeChainSideEvent(ch chan<- core.ChainSideEvent) event.Subscription + func (a *APIBackend) SubscribeLogsEvent(ch chan<- []*types.Log) event.Subscription + func (a *APIBackend) SubscribeNewTxsEvent(ch chan<- core.NewTxsEvent) event.Subscription + func (a *APIBackend) SubscribePendingLogsEvent(ch chan<- []*types.Log) event.Subscription + func (a *APIBackend) SubscribeRemovedLogsEvent(ch chan<- core.RemovedLogsEvent) event.Subscription + func (a *APIBackend) SuggestGasTipCap(ctx context.Context) (*big.Int, error) + func (a *APIBackend) SyncProgress() ethereum.SyncProgress + func (a *APIBackend) SyncProgressMap() map[string]interface{} + func (a *APIBackend) TxPoolContent() (map[common.Address]types.Transactions, map[common.Address]types.Transactions) + func (a *APIBackend) TxPoolContentFrom(addr common.Address) (types.Transactions, types.Transactions) + func (a *APIBackend) UnprotectedAllowed() bool + func (b *APIBackend) FallbackClient() types.FallbackClient + func (b *APIBackend) PendingBlockAndReceipts() (*types.Block, types.Receipts) + type ArbDebugConfig struct + BlockRangeBound uint64 + TimeoutQueueBound uint64 + type ArbInterface interface + ArbNode func() interface{} + BlockChain func() *core.BlockChain + PublishTransaction func(ctx context.Context, tx *types.Transaction) error + type Backend struct + func NewBackend(stack *node.Node, config *Config, chainDb ethdb.Database, ...) (*Backend, error) + func (b *Backend) APIBackend() *APIBackend + func (b *Backend) ArbInterface() ArbInterface + func (b *Backend) ChainDb() ethdb.Database + func (b *Backend) EnqueueL2Message(ctx context.Context, tx *types.Transaction) error + func (b *Backend) Stack() *node.Node + func (b *Backend) Start() error + func (b *Backend) Stop() error + func (b *Backend) SubscribeNewTxsEvent(ch chan<- core.NewTxsEvent) event.Subscription + type Config struct + ArbDebug ArbDebugConfig + BloomBitsBlocks uint64 + BloomConfirms uint64 + ClassicRedirect string + ClassicRedirectTimeout time.Duration + FeeHistoryMaxBlockCount uint64 + RPCEVMTimeout time.Duration + RPCGasCap uint64 + RPCTxFeeCap float64 + type PublicNetAPI struct + func NewPublicNetAPI(networkVersion uint64) *PublicNetAPI + func (s *PublicNetAPI) Version() string + type PublicTxPoolAPI struct + func NewPublicTxPoolAPI() *PublicTxPoolAPI + func (s *PublicTxPoolAPI) Content() map[string]map[string]map[string]*struct{} + type RecordingChainContext struct + func NewRecordingChainContext(inner core.ChainContext, blocknumber uint64) *RecordingChainContext + func (r *RecordingChainContext) Engine() consensus.Engine + func (r *RecordingChainContext) GetHeader(hash common.Hash, num uint64) *types.Header + func (r *RecordingChainContext) GetMinBlockNumberAccessed() uint64 + type RecordingKV struct + func NewRecordingKV(inner *trie.Database) *RecordingKV + func PrepareRecording(blockchain *core.BlockChain, lastBlockHeader *types.Header) (*state.StateDB, core.ChainContext, *RecordingKV, error) + func (db *RecordingKV) Close() error + func (db *RecordingKV) Compact(start []byte, limit []byte) error + func (db *RecordingKV) Delete(key []byte) error + func (db *RecordingKV) EnableBypass() + func (db *RecordingKV) Get(key []byte) ([]byte, error) + func (db *RecordingKV) GetRecordedEntries() map[common.Hash][]byte + func (db *RecordingKV) Has(key []byte) (bool, error) + func (db *RecordingKV) NewBatch() ethdb.Batch + func (db *RecordingKV) NewBatchWithSize(size int) ethdb.Batch + func (db *RecordingKV) NewIterator(prefix []byte, start []byte) ethdb.Iterator + func (db *RecordingKV) NewSnapshot() (ethdb.Snapshot, error) + func (db *RecordingKV) Put(key []byte, value []byte) error + func (db *RecordingKV) Release() + func (db *RecordingKV) Stat(property string) (string, error) + type SyncProgressBackend interface + SyncProgressMap func() map[string]interface{} + type TransactionArgs = ethapi.TransactionArgs