Versions in this module Expand all Collapse all v1 v1.41.0 Jan 26, 2026 Changes in this version + type Chain interface + BaseFee func(ctx context.Context) (*big.Int, error) + ChainID func() *big.Int + GasPrice func(ctx context.Context) (*big.Int, error) + IsEIP1559 func() bool + LatestNonce func(ctx context.Context, address common.Address) (uint64, error) + PendingNonce func(ctx context.Context, address common.Address) (uint64, error) + PriorityFee func(ctx context.Context) (*big.Int, error) + Send func(ctx context.Context, transaction *types.Transaction) error + Subscribe func(ctx context.Context) (<-chan Diff, error) + func NewEthkitChain(options EthkitChainOptions) (Chain, error) + type Diff struct + Added map[common.Hash]struct{} + Removed map[common.Hash]struct{} + type EthkitChainOptions struct + ChainID *big.Int + GasGauge *ethgas.GasGauge + GasGaugeSpeed GasGaugeSpeed + IsEIP1559 bool + Logger *slog.Logger + Monitor *ethmonitor.Monitor + PriorityFee *big.Int + Provider *ethrpc.Provider + func (o EthkitChainOptions) IsValid() error + type Event struct + Added *Transaction[T] + Removed *Transaction[T] + type Finalizer struct + func NewFinalizer[T any](options FinalizerOptions[T]) (*Finalizer[T], error) + func (f *Finalizer[T]) IsRunning() bool + func (f *Finalizer[T]) Run(ctx context.Context) error + func (f *Finalizer[T]) Send(ctx context.Context, transaction *types.Transaction, metadata T) (*types.Transaction, error) + func (f *Finalizer[T]) Subscribe(ctx context.Context) <-chan Event[T] + type FinalizerOptions struct + Chain Chain + FeeMargin int + Logger *slog.Logger + Mempool Mempool[T] + PollInterval time.Duration + PollTimeout time.Duration + PriceBump int + RetryDelay time.Duration + SubscriptionBuffer int + Wallet *ethwallet.Wallet + func (o FinalizerOptions[T]) IsValid() error + type GasGaugeSpeed int + const GasGaugeSpeedDefault + const GasGaugeSpeedFast + const GasGaugeSpeedInstant + const GasGaugeSpeedSlow + const GasGaugeSpeedStandard + type Mempool interface + Commit func(ctx context.Context, transaction *types.Transaction, metadata T) error + Nonce func(ctx context.Context) (uint64, error) + PriciestTransactions func(ctx context.Context, fromNonce uint64, before time.Time) (map[uint64]*Transaction[T], error) + Transactions func(ctx context.Context, hashes map[common.Hash]struct{}) (map[common.Hash]*Transaction[T], error) + func NewMemoryMempool[T any]() Mempool[T] + type Transaction struct + Metadata T