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, opts ...EIP1559FeeEstimatorOption) *EIP1559FeeEstimator
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)
Click to show internal directories.
Click to hide internal directories.