goethereum

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 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 (*EIP1559FeeEstimator) EstimateFees

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

type EIP1559FeeEstimatorOption added in v1.12.2

type EIP1559FeeEstimatorOption interface {
	// contains filtered or unexported methods
}

func WithEIP1559BaseMultiplier added in v1.12.2

func WithEIP1559BaseMultiplier(multiplier float64) EIP1559FeeEstimatorOption

func WithEIP1559TipMultiplier added in v1.12.2

func WithEIP1559TipMultiplier(multiplier float64) EIP1559FeeEstimatorOption

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