Versions in this module Expand all Collapse all v1 v1.20.4 Jun 15, 2026 Changes in this version + const DefaultBundleBlockCount + const DefaultSubmissionTimeout + const JsonRpcInternalError + const JsonRpcInvalidParams + const JsonRpcInvalidRequest + const JsonRpcMethodNotFound + const JsonRpcParseError + var AllBuilders = []string + var FlashbotsUrlPerNetwork = map[uint64]string + func SubmitBundleAndWait(ctx context.Context, logger *slog.Logger, ethRpc EthRpc, relayUrl string, ...) (bool, error) + type Bundle struct + func NewBundle() *Bundle + func NewBundleWithTransactions(transactions []*types.Transaction) *Bundle + func (b *Bundle) AddTransaction(tx *types.Transaction) + func (b *Bundle) AddTransactions(txs []*types.Transaction) + func (b *Bundle) Builders() []string + func (b *Bundle) BundleHash() common.Hash + func (b *Bundle) Copy() *Bundle + func (b *Bundle) GetBundelsForNextNBlocks(n uint64) ([]*Bundle, error) + func (b *Bundle) MaxTimestamp() int64 + func (b *Bundle) MaximumGasFeePaid() (feePaid *big.Int) + func (b *Bundle) MinTimestamp() int64 + func (b *Bundle) ReplacementUuid() string + func (b *Bundle) RevertingTxHashes() []string + func (b *Bundle) SetMaxTimestamp(maxTimestamp int64) error + func (b *Bundle) SetMinTimestamp(minTimestamp int64) error + func (b *Bundle) SetReplacementUuid(replacementUuid string) error + func (b *Bundle) SetRevertingTxHash(revertingTxHash string) + func (b *Bundle) SetRevertingTxHashes(revertingTxHashes []string) + func (b *Bundle) SetTargetBlockNumber(blocknumber uint64) error + func (b *Bundle) TargetBlockNumber() uint64 + func (b *Bundle) Transactions() []*types.Transaction + func (b *Bundle) UseAllBuilders(networkId uint64) + type BundleStats struct + ConsideredByBuilders []struct{ ... } + IsHighPriority bool + IsSimulated bool + ReceivedAt string + SealedByBuilders []struct{ ... } + SimulatedAt string + type BundleStatsV2 struct + ConsideredByBuilders []struct{ ... } + IsHighPriority bool + IsSimulated bool + ReceivedAt string + SealedByBuilders []struct{ ... } + SimulatedAt string + type ErrorType struct + Code int + Message string + type EthRpc interface + BlockNumber func(ctx context.Context) (uint64, error) + ChainID func(ctx context.Context) (*big.Int, error) + TransactionReceipt func(ctx context.Context, txHash common.Hash) (*types.Receipt, error) + type FlashbotsClient struct + func NewClient(logger *slog.Logger, ethRpc EthRpc, relayUrl string, ...) (*FlashbotsClient, error) + func NewClientRpcString(logger *slog.Logger, ethRpcStr string, relayUrl string, ...) (*FlashbotsClient, error) + func (client *FlashbotsClient) Call(method string, params ...interface{}) (json.RawMessage, error) + func (client *FlashbotsClient) CallWithAdditionalHeaders(method string, headers map[string]string, params ...interface{}) (json.RawMessage, error) + func (client *FlashbotsClient) CancelBundle(uuid string) error + func (client *FlashbotsClient) CheckBundleIncusion(ctx context.Context, bundle *Bundle) (bool, error) + func (client *FlashbotsClient) GetBundleStats(bundle *Bundle) (*BundleStats, error) + func (client *FlashbotsClient) GetBundleStatsV2(bundle *Bundle) (*BundleStatsV2, error) + func (client *FlashbotsClient) GetSbundleStats(bundle *Bundle) (*BundleStats, error) + func (client *FlashbotsClient) SendBundle(bundle *Bundle) (common.Hash, bool, error) + func (client *FlashbotsClient) SendBundleAndWait(ctx context.Context, bundle *Bundle) (bool, error) + func (client *FlashbotsClient) SendBundleNTimes(originalBundle *Bundle, n uint64) (bundlesToSend []*Bundle, hash common.Hash, smart bool, err error) + func (client *FlashbotsClient) SendNBundleAndWait(ctx context.Context, bundle *Bundle, n uint64) (bool, error) + func (client *FlashbotsClient) SimulateBundle(bundle *Bundle, stateBlocknumber uint64) (*SimulationResultBundle, bool, error) + func (client *FlashbotsClient) UpdateFeeRefundRecipient(newFeeRefundRecipient common.Address) error + func (client *FlashbotsClient) WaitForBundleInclusion(ctx context.Context, bundle *Bundle) (bool, error) + type RawSimulationResultBundle struct + BundleGasPrice string + BundleHash string + CoinbaseDiff string + EthSentToCoinbase string + FirstRevert string + GasFees string + Results []RawSimulationResultTransaction + StateBlockNumber uint64 + TotalGasUsed uint64 + type RawSimulationResultTransaction struct + CoinbaseDiff string + Error string + EthSentToCoinbase string + FromAddress string + GasFees string + GasPrice string + GasUsed uint64 + RevertReason string + ToAddress string + TxHash string + Value string + type Request struct + ID int + JSONRPC string + Method string + Params []interface{} + type Response struct + Error ErrorType + ID int + JSONRPC string + Result json.RawMessage + type SimulationResultBundle struct + BundleGasPrice *big.Int + BundleHash common.Hash + CoinbaseDiff *big.Int + EthSentToCoinbase *big.Int + FirstRevert common.Hash + GasFees *big.Int + Results []SimulationResultTransaction + StateBlockNumber uint64 + TotalGasUsed uint64 + type SimulationResultTransaction struct + CoinbaseDiff *big.Int + Error string + EthSentToCoinbase *big.Int + FromAddress common.Address + GasFees *big.Int + GasPrice *big.Int + GasUsed uint64 + RevertReason string + ToAddress common.Address + TxHash common.Hash + Value *big.Int