Versions in this module Expand all Collapse all v0 v0.24.0 Nov 28, 2024 Changes in this version + type EthereumAPI interface + Accounts func() ([]common.Address, error) + BlockNumber func() (hexutil.Uint64, error) + Call func(args evmtypes.TransactionArgs, blockNrOrHash rpctypes.BlockNumberOrHash, ...) (hexutil.Bytes, error) + ChainId func() (*hexutil.Big, error) + Coinbase func() (string, error) + EstimateGas func(args evmtypes.TransactionArgs, blockNrOptional *rpctypes.BlockNumber) (hexutil.Uint64, error) + FeeHistory func(blockCount rpc.DecimalOrHex, lastBlock rpc.BlockNumber, ...) (*rpctypes.FeeHistoryResult, error) + FillTransaction func(args evmtypes.TransactionArgs) (*rpctypes.SignTransactionResult, error) + GasPrice func() (*hexutil.Big, error) + GetBalance func(address common.Address, blockNrOrHash rpctypes.BlockNumberOrHash) (*hexutil.Big, error) + GetBlockByHash func(hash common.Hash, fullTx bool) (map[string]interface{}, error) + GetBlockByNumber func(ethBlockNum rpctypes.BlockNumber, fullTx bool) (map[string]interface{}, error) + GetBlockTransactionCountByHash func(hash common.Hash) *hexutil.Uint + GetBlockTransactionCountByNumber func(blockNum rpctypes.BlockNumber) *hexutil.Uint + GetCode func(address common.Address, blockNrOrHash rpctypes.BlockNumberOrHash) (hexutil.Bytes, error) + GetPendingTransactions func() ([]*rpctypes.RPCTransaction, error) + GetProof func(address common.Address, storageKeys []string, ...) (*rpctypes.AccountResult, error) + GetStorageAt func(address common.Address, key string, blockNrOrHash rpctypes.BlockNumberOrHash) (hexutil.Bytes, error) + GetTransactionByBlockHashAndIndex func(hash common.Hash, idx hexutil.Uint) (*rpctypes.RPCTransaction, error) + GetTransactionByBlockNumberAndIndex func(blockNum rpctypes.BlockNumber, idx hexutil.Uint) (*rpctypes.RPCTransaction, error) + GetTransactionByHash func(hash common.Hash) (*rpctypes.RPCTransaction, error) + GetTransactionCount func(address common.Address, blockNrOrHash rpctypes.BlockNumberOrHash) (*hexutil.Uint64, error) + GetTransactionLogs func(txHash common.Hash) ([]*ethtypes.Log, error) + GetTransactionReceipt func(hash common.Hash) (map[string]interface{}, error) + GetUncleByBlockHashAndIndex func(hash common.Hash, idx hexutil.Uint) map[string]interface{} + GetUncleByBlockNumberAndIndex func(number, idx hexutil.Uint) map[string]interface{} + GetUncleCountByBlockHash func(hash common.Hash) hexutil.Uint + GetUncleCountByBlockNumber func(blockNum rpctypes.BlockNumber) hexutil.Uint + Hashrate func() hexutil.Uint64 + MaxPriorityFeePerGas func() (*hexutil.Big, error) + Mining func() bool + ProtocolVersion func() hexutil.Uint + Resend func(ctx context.Context, args evmtypes.TransactionArgs, gasPrice *hexutil.Big, ...) (common.Hash, error) + SendRawTransaction func(data hexutil.Bytes) (common.Hash, error) + SendTransaction func(args evmtypes.TransactionArgs) (common.Hash, error) + Sign func(address common.Address, data hexutil.Bytes) (hexutil.Bytes, error) + SignTypedData func(address common.Address, typedData apitypes.TypedData) (hexutil.Bytes, error) + Syncing func() (interface{}, error) + type PublicAPI struct + func NewPublicAPI(logger log.Logger, backend backend.EVMBackend) *PublicAPI + func (e *PublicAPI) Accounts() ([]common.Address, error) + func (e *PublicAPI) BlockNumber() (hexutil.Uint64, error) + func (e *PublicAPI) Call(args evmtypes.TransactionArgs, blockNrOrHash rpctypes.BlockNumberOrHash, ...) (hexutil.Bytes, error) + func (e *PublicAPI) ChainId() (*hexutil.Big, error) + func (e *PublicAPI) Coinbase() (string, error) + func (e *PublicAPI) EstimateGas(args evmtypes.TransactionArgs, blockNrOptional *rpctypes.BlockNumber) (hexutil.Uint64, error) + func (e *PublicAPI) FeeHistory(blockCount rpc.DecimalOrHex, lastBlock rpc.BlockNumber, ...) (*rpctypes.FeeHistoryResult, error) + func (e *PublicAPI) FillTransaction(args evmtypes.TransactionArgs) (*rpctypes.SignTransactionResult, error) + func (e *PublicAPI) GasPrice() (*hexutil.Big, error) + func (e *PublicAPI) GetBalance(address common.Address, blockNrOrHash rpctypes.BlockNumberOrHash) (*hexutil.Big, error) + func (e *PublicAPI) GetBlockByHash(hash common.Hash, fullTx bool) (map[string]interface{}, error) + func (e *PublicAPI) GetBlockByNumber(ethBlockNum rpctypes.BlockNumber, fullTx bool) (map[string]interface{}, error) + func (e *PublicAPI) GetBlockTransactionCountByHash(hash common.Hash) *hexutil.Uint + func (e *PublicAPI) GetBlockTransactionCountByNumber(blockNum rpctypes.BlockNumber) *hexutil.Uint + func (e *PublicAPI) GetCode(address common.Address, blockNrOrHash rpctypes.BlockNumberOrHash) (hexutil.Bytes, error) + func (e *PublicAPI) GetPendingTransactions() ([]*rpctypes.RPCTransaction, error) + func (e *PublicAPI) GetProof(address common.Address, storageKeys []string, ...) (*rpctypes.AccountResult, error) + func (e *PublicAPI) GetStorageAt(address common.Address, key string, blockNrOrHash rpctypes.BlockNumberOrHash) (hexutil.Bytes, error) + func (e *PublicAPI) GetTransactionByBlockHashAndIndex(hash common.Hash, idx hexutil.Uint) (*rpctypes.RPCTransaction, error) + func (e *PublicAPI) GetTransactionByBlockNumberAndIndex(blockNum rpctypes.BlockNumber, idx hexutil.Uint) (*rpctypes.RPCTransaction, error) + func (e *PublicAPI) GetTransactionByHash(hash common.Hash) (*rpctypes.RPCTransaction, error) + func (e *PublicAPI) GetTransactionCount(address common.Address, blockNrOrHash rpctypes.BlockNumberOrHash) (*hexutil.Uint64, error) + func (e *PublicAPI) GetTransactionLogs(txHash common.Hash) ([]*ethtypes.Log, error) + func (e *PublicAPI) GetTransactionReceipt(hash common.Hash) (map[string]interface{}, error) + func (e *PublicAPI) GetUncleByBlockHashAndIndex(_ common.Hash, _ hexutil.Uint) map[string]interface{} + func (e *PublicAPI) GetUncleByBlockNumberAndIndex(_, _ hexutil.Uint) map[string]interface{} + func (e *PublicAPI) GetUncleCountByBlockHash(_ common.Hash) hexutil.Uint + func (e *PublicAPI) GetUncleCountByBlockNumber(_ rpctypes.BlockNumber) hexutil.Uint + func (e *PublicAPI) Hashrate() hexutil.Uint64 + func (e *PublicAPI) MaxPriorityFeePerGas() (*hexutil.Big, error) + func (e *PublicAPI) Mining() bool + func (e *PublicAPI) ProtocolVersion() hexutil.Uint + func (e *PublicAPI) Resend(_ context.Context, args evmtypes.TransactionArgs, gasPrice *hexutil.Big, ...) (common.Hash, error) + func (e *PublicAPI) SendRawTransaction(data hexutil.Bytes) (common.Hash, error) + func (e *PublicAPI) SendTransaction(args evmtypes.TransactionArgs) (common.Hash, error) + func (e *PublicAPI) Sign(address common.Address, data hexutil.Bytes) (hexutil.Bytes, error) + func (e *PublicAPI) SignTypedData(address common.Address, typedData apitypes.TypedData) (hexutil.Bytes, error) + func (e *PublicAPI) Syncing() (interface{}, error)