Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BumpGas ¶
func BumpGas(tx *coretypes.Transaction) *coretypes.Transaction
BumpGas bumps the gas on a tx by a 15% increase.
func SetNonce ¶
func SetNonce(tx *coretypes.Transaction, nonce uint64) *coretypes.Transaction
SetNonce sets the given nonce on a tx.
Types ¶
type Factory ¶
type Factory interface { RebuildTransactionFromRequest( context.Context, *ethereum.CallMsg, uint64, ) (*coretypes.Transaction, error) }
Factory is an interface for building transactions, used if retrying.
type Sender ¶
type Sender struct {
// contains filtered or unexported fields
}
Sender is a component that sends (and retries) transactions to the chain.
func (*Sender) SendTransaction ¶
SendTransaction sends a transaction using the Ethereum client. If the transaction fails to send, it retries based on the configured retry policy.
Click to show internal directories.
Click to hide internal directories.