Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { // EstimateGas tries to estimate the gas needed to execute a specific transaction based on // the current pending state of the backend blockchain. There is no guarantee that this is // the true gas limit requirement as other transactions may be added or removed by miners, // but it should provide a basis for setting a reasonable default. EstimateGas(ctx context.Context, msg geth.CallMsg) (uint64, error) // NetworkID returns the network ID (also known as the chain ID) for this chain. NetworkID(ctx context.Context) (*big.Int, error) // NonceAt returns the account nonce of the given account. // The block number can be nil, in which case the nonce is taken from the latest known block. NonceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (uint64, error) // SendTransaction injects a signed transaction into the pending pool for execution. // // If the transaction was a contract creation use the TransactionReceipt method to get the // contract address after the transaction has been mined. SendTransaction(ctx context.Context, tx *types.Transaction) error // SuggestGasPrice retrieves the currently suggested gas price to allow a timely // execution of a transaction. SuggestGasPrice(ctx context.Context) (*big.Int, error) }
Client functions needed to send ethereum transactions.
Directories ¶
Path | Synopsis |
---|---|
Package ethrpc2test is a generated GoMock package.
|
Package ethrpc2test is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.