Versions in this module Expand all Collapse all v0 v0.11.1 Mar 16, 2021 v0.10.1 Mar 16, 2021 Changes in this version + const DefaultEVMErrorCode + const RPCEthCall + const RPCEthEstimateGas + const RPCEthGetBlockByHash + const RPCNullData + const RPCUnknowErr + 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 + func NewAPI(clientCtx clientcontext.CLIContext, 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, blockNr rpctypes.BlockNumber, ...) (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) GasPrice() *hexutil.Big + func (api *PublicEthereumAPI) GetBalance(address common.Address, blockNum rpctypes.BlockNumber) (*hexutil.Big, error) + func (api *PublicEthereumAPI) GetBlockByHash(hash common.Hash, fullTx bool) (map[string]interface{}, error) + func (api *PublicEthereumAPI) GetBlockByNumber(blockNum rpctypes.BlockNumber, fullTx bool) (map[string]interface{}, 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, blockNumber rpctypes.BlockNumber) (hexutil.Bytes, error) + func (api *PublicEthereumAPI) GetKeyringInfo() error + func (api *PublicEthereumAPI) GetKeys() []ethsecp256k1.PrivKey + func (api *PublicEthereumAPI) GetProof(address common.Address, storageKeys []string, block rpctypes.BlockNumber) (*rpctypes.AccountResult, error) + func (api *PublicEthereumAPI) GetStorageAt(address common.Address, key string, blockNum rpctypes.BlockNumber) (hexutil.Bytes, error) + func (api *PublicEthereumAPI) GetTransactionByBlockHashAndIndex(hash common.Hash, idx hexutil.Uint) (*rpctypes.Transaction, error) + func (api *PublicEthereumAPI) GetTransactionByBlockNumberAndIndex(blockNum rpctypes.BlockNumber, idx hexutil.Uint) (*rpctypes.Transaction, error) + func (api *PublicEthereumAPI) GetTransactionByHash(hash common.Hash) (*rpctypes.Transaction, error) + func (api *PublicEthereumAPI) GetTransactionCount(address common.Address, blockNum rpctypes.BlockNumber) (*hexutil.Uint64, error) + func (api *PublicEthereumAPI) GetTransactionLogs(txHash common.Hash) ([]*ethtypes.Log, error) + func (api *PublicEthereumAPI) GetTransactionReceipt(hash common.Hash) (map[string]interface{}, 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) Mining() bool + func (api *PublicEthereumAPI) PendingTransactions() ([]*rpctypes.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)