package
0.4.1
Repository: https://github.com/cosmos/ethermint.git
Documentation: pkg.go.dev

# Functions

BlockMaxGasFromConsensusParams returns the gas limit for the latest block from the chain consensus params.
EthBlockFromTendermint returns a JSON-RPC compatible Ethereum blockfrom a given Tendermint block.
EthHeaderFromTendermint is an util function that returns an Ethereum Header from a tendermint Header.
EthTransactionsFromTendermint returns a slice of ethereum transaction hashes and the total gas usage from a set of tendermint block transactions.
FormatBlock creates an ethereum block from a tendermint header and ethereum-formatted transactions.
GetBlockCumulativeGas returns the cumulative gas used on a block up to a given transaction index.
GetKeyByAddress returns the private key matching the given address.
NewBlockNumber creates a new BlockNumber instance.
NewTransaction returns a transaction that will serialize to the RPC representation, with the given location metadata set (if available).
RawTxToEthTx returns a evm MsgEthereum transaction from raw tx bytes.

# Constants

EarliestBlockNumber mapping from "earliest" to 1 for tm query (earliest query not supported).
LatestBlockNumber mapping from "latest" to 0 for tm query.
PendingBlockNumber mapping from "pending" to -1 for tm query.

# Structs

Account indicates the overriding fields of account during the execution of a message call.
AccountResult struct for account proof.
AddrLocker is a mutex structure used to avoid querying outdated account data.
CallArgs represents the arguments for a call.
SendTxArgs represents the arguments to submit a new transaction into the transaction pool.
StorageResult defines the format for storage proof return.
Transaction represents a transaction returned to RPC clients.

# Type aliases

BlockNumber represents decoding hex string to block values.