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)
Click to show internal directories.
Click to hide internal directories.