Versions in this module Expand all Collapse all v0 v0.1.1 May 14, 2023 Changes in this version + const AccountNotExistsCode + const BroadcastPeriodSecond + const CacheOfEthCallLru + const DefaultEVMErrorCode + const EvmDefaultGasLimit + const EvmHookGasEstimate + const FlagAllowUnprotectedTxs + const FlagEnableMultiCall + const FlagEnableTxPool + const FlagFastQueryThreshold + const NameSpace + const RPCEthCall + const RPCEthEstimateGas + const RPCEthGetBlockByHash + const RPCNullData + const RPCUnknowErr + const TxPoolCap + const VMExecuteException + const VMExecuteExceptionInEstimate + func CheckError(txRes sdk.TxResponse) (common.Hash, error) + func ParseGasPrice() *hexutil.Big + func TransformDataError(err error, method string) error + type DataError struct + Msg string + func (d DataError) Error() string + func (d DataError) ErrorCode() int + func (d DataError) ErrorData() interface{} + type PublicEthereumAPI struct + Metrics *monitor.RpcMetrics + func NewAPI(clientCtx clientcontext.CLIContext, log log.Logger, backend backend.Backend, ...) *PublicEthereumAPI + func (api *PublicEthereumAPI) Accounts() ([]common.Address, error) + func (api *PublicEthereumAPI) BlockNumber() (hexutil.Uint64, error) + func (api *PublicEthereumAPI) Call(args rpctypes.CallArgs, blockNrOrHash rpctypes.BlockNumberOrHash, ...) (hexutil.Bytes, error) + func (api *PublicEthereumAPI) ChainId() (hexutil.Uint, error) + func (api *PublicEthereumAPI) ClientCtx() clientcontext.CLIContext + func (api *PublicEthereumAPI) Coinbase() (common.Address, error) + func (api *PublicEthereumAPI) EstimateGas(args rpctypes.CallArgs) (hexutil.Uint64, error) + func (api *PublicEthereumAPI) FeeHistory(blockCount rpc.DecimalOrHex, lastBlock rpc.BlockNumber, ...) (*rpctypes.FeeHistoryResult, error) + func (api *PublicEthereumAPI) FillTransaction(args rpctypes.SendTxArgs) (*rpctypes.SignTransactionResult, error) + func (api *PublicEthereumAPI) GasPrice() *hexutil.Big + func (api *PublicEthereumAPI) GasPriceIn3Gears() *rpctypes.GPIn3Gears + func (api *PublicEthereumAPI) GetAccount(address common.Address) (*ethermint.EthAccount, error) + func (api *PublicEthereumAPI) GetAllTransactionResultsByBlock(blockNrOrHash rpctypes.BlockNumberOrHash, offset, limit hexutil.Uint) ([]*watcher.TransactionResult, error) + func (api *PublicEthereumAPI) GetBalance(address common.Address, blockNrOrHash rpctypes.BlockNumberOrHash) (*hexutil.Big, error) + func (api *PublicEthereumAPI) GetBalanceBatch(addresses []string, blockNrOrHash rpctypes.BlockNumberOrHash) (interface{}, error) + func (api *PublicEthereumAPI) GetBlockByHash(hash common.Hash, fullTx bool) (*evmtypes.Block, error) + func (api *PublicEthereumAPI) GetBlockByNumber(blockNum rpctypes.BlockNumber, fullTx bool) (*evmtypes.Block, error) + func (api *PublicEthereumAPI) GetBlockTransactionCountByHash(hash common.Hash) *hexutil.Uint + func (api *PublicEthereumAPI) GetBlockTransactionCountByNumber(blockNum rpctypes.BlockNumber) *hexutil.Uint + func (api *PublicEthereumAPI) GetCode(address common.Address, blockNrOrHash rpctypes.BlockNumberOrHash) (hexutil.Bytes, error) + func (api *PublicEthereumAPI) GetCodeByHash(hash common.Hash) (hexutil.Bytes, error) + func (api *PublicEthereumAPI) GetCodec() *codec.Codec + func (api *PublicEthereumAPI) GetKeyringInfo() error + func (api *PublicEthereumAPI) GetKeys() []ethsecp256k1.PrivKey + func (api *PublicEthereumAPI) GetProof(address common.Address, storageKeys []string, ...) (*rpctypes.AccountResult, error) + func (api *PublicEthereumAPI) GetStorageAt(address common.Address, key string, blockNrOrHash rpctypes.BlockNumberOrHash) (hexutil.Bytes, error) + func (api *PublicEthereumAPI) GetStorageAtInternal(address common.Address, key []byte) (hexutil.Bytes, error) + func (api *PublicEthereumAPI) GetTransactionByBlockHashAndIndex(hash common.Hash, idx hexutil.Uint) (*watcher.Transaction, error) + func (api *PublicEthereumAPI) GetTransactionByBlockNumberAndIndex(blockNum rpctypes.BlockNumber, idx hexutil.Uint) (*watcher.Transaction, error) + func (api *PublicEthereumAPI) GetTransactionByHash(hash common.Hash) (*watcher.Transaction, error) + func (api *PublicEthereumAPI) GetTransactionCount(address common.Address, blockNrOrHash rpctypes.BlockNumberOrHash) (*hexutil.Uint64, error) + func (api *PublicEthereumAPI) GetTransactionLogs(txHash common.Hash) ([]*ethtypes.Log, error) + func (api *PublicEthereumAPI) GetTransactionReceipt(hash common.Hash) (*watcher.TransactionReceipt, error) + func (api *PublicEthereumAPI) GetTransactionReceiptsByBlock(blockNrOrHash rpctypes.BlockNumberOrHash, offset, limit hexutil.Uint) ([]*watcher.TransactionReceipt, error) + func (api *PublicEthereumAPI) GetTransactionsByBlock(blockNrOrHash rpctypes.BlockNumberOrHash, offset, limit hexutil.Uint) ([]*watcher.Transaction, error) + func (api *PublicEthereumAPI) GetUncleByBlockHashAndIndex(hash common.Hash, idx hexutil.Uint) map[string]interface{} + func (api *PublicEthereumAPI) GetUncleByBlockNumberAndIndex(number hexutil.Uint, idx hexutil.Uint) map[string]interface{} + func (api *PublicEthereumAPI) GetUncleCountByBlockHash(_ common.Hash) hexutil.Uint + func (api *PublicEthereumAPI) GetUncleCountByBlockNumber(_ rpctypes.BlockNumber) hexutil.Uint + func (api *PublicEthereumAPI) Hashrate() hexutil.Uint64 + func (api *PublicEthereumAPI) JudgeEvm2CmTx(toAddr, payLoad []byte) bool + func (api *PublicEthereumAPI) Mining() bool + func (api *PublicEthereumAPI) MultiCall(args []rpctypes.CallArgs, blockNr rpctypes.BlockNumber, ...) ([]hexutil.Bytes, error) + func (api *PublicEthereumAPI) PendingTransactions() ([]*watcher.Transaction, error) + func (api *PublicEthereumAPI) PendingTransactionsByHash(target common.Hash) (*watcher.Transaction, error) + func (api *PublicEthereumAPI) ProtocolVersion() hexutil.Uint + func (api *PublicEthereumAPI) SendRawTransaction(data hexutil.Bytes) (common.Hash, error) + func (api *PublicEthereumAPI) SendTransaction(args rpctypes.SendTxArgs) (common.Hash, error) + func (api *PublicEthereumAPI) SetKeys(keys []ethsecp256k1.PrivKey) + func (api *PublicEthereumAPI) Sign(address common.Address, data hexutil.Bytes) (hexutil.Bytes, error) + func (api *PublicEthereumAPI) Syncing() (interface{}, error) + type TxPool struct + func NewTxPool(clientCtx clientcontext.CLIContext, api *PublicEthereumAPI) *TxPool + func (pool *TxPool) CacheAndBroadcastTx(api *PublicEthereumAPI, address common.Address, tx *evmtypes.MsgEthereumTx) error