goethereum

package
v1.12.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EIP1159FeeEthClient

type EIP1159FeeEthClient interface {
	BlockByNumber(ctx context.Context, number *big.Int) (*types.Block, error)
	SuggestGasTipCap(ctx context.Context) (*big.Int, error)
}

EIP1159FeeEthClient is a subset of the ethclient.Client interface required for fee estimation

type EIP1559FeeEstimator

type EIP1559FeeEstimator struct {
	// contains filtered or unexported fields
}

EIP1559FeeEstimator is a fee estimator that uses EIP-1559 fee estimation

func NewEIP1559FeeEstimator

func NewEIP1559FeeEstimator(client EIP1159FeeEthClient) *EIP1559FeeEstimator

func (*EIP1559FeeEstimator) EstimateFees

func (f *EIP1559FeeEstimator) EstimateFees(ctx context.Context, opts *bind.TransactOpts) (*bind.TransactOpts, error)

func (*EIP1559FeeEstimator) WithTipMultiplier

func (f *EIP1559FeeEstimator) WithTipMultiplier(multiplier *big.Int) *EIP1559FeeEstimator

type FeeEstimator

type FeeEstimator interface {
	EstimateFees(ctx context.Context, opts *bind.TransactOpts) (*bind.TransactOpts, error)
}

FeeEstimator is a generic fee estimation interface (not specific to EIP-1559)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL