Versions in this module Expand all Collapse all v1 v1.0.1 May 8, 2023 Changes in this version + type Api struct + CustomHeaders map[string]string + MethodCall string + MethodSend string + SupportsSimulation bool + URL string + func DefaultApi(netID int64) (*Api, error) + type BundleStats struct + IsHighPriority bool + IsSimulated bool + SentToMinersAt time.Time + SimulatedAt time.Time + SubmittedAt time.Time + type BundleUserStats struct + AllTimeGasSimulated string + AllTimeMinerPayments string + IsHighPriority bool + Last1dGasSimulated string + Last1dMinerPayments string + Last7dGasSimulated string + Last7dMinerPayments string + type CancelPrivateTransactionResponse struct + Result bool + type Error struct + Code int + Message string + type Flashbot struct + func (self *Flashbot) Api() *Api + func (self *Flashbot) CallBundle(ctx context.Context, txsHex []string, _blockNumState uint64) (*Response, error) + func (self *Flashbot) CancelPrivateTransaction(ctx context.Context, txHash common.Hash) (*CancelPrivateTransactionResponse, error) + func (self *Flashbot) EstimateGasBundle(ctx context.Context, txs []Tx, blockNum uint64) (*Response, error) + func (self *Flashbot) GetBundleStats(ctx context.Context, bundleHash string, blockNum uint64) (*ResultBundleStats, error) + func (self *Flashbot) GetUserStats(ctx context.Context, blockNum uint64) (*ResultUserStats, error) + func (self *Flashbot) PrvKey() *ecdsa.PrivateKey + func (self *Flashbot) SendBundle(ctx context.Context, txsHex []string, blockNum uint64) (*Response, error) + func (self *Flashbot) SendPrivateTransaction(ctx context.Context, txHex string, blockNum uint64, fast bool) (*SendPrivateTransactionResponse, error) + func (self *Flashbot) SetKey(prvKey *ecdsa.PrivateKey) error + type Flashboter interface + Api func() *Api + CallBundle func(ctx context.Context, txsHex []string, blockNumState uint64) (*Response, error) + CancelPrivateTransaction func(ctx context.Context, txHash common.Hash) (*CancelPrivateTransactionResponse, error) + EstimateGasBundle func(ctx context.Context, txs []Tx, blockNum uint64) (*Response, error) + GetBundleStats func(ctx context.Context, bundleHash string, blockNum uint64) (*ResultBundleStats, error) + GetUserStats func(ctx context.Context, blockNum uint64) (*ResultUserStats, error) + SendBundle func(ctx context.Context, txsHex []string, blockNum uint64) (*Response, error) + SendPrivateTransaction func(ctx context.Context, txHex string, blockNum uint64, fast bool) (*SendPrivateTransactionResponse, error) + func New(prvKey *ecdsa.PrivateKey, api *Api) (Flashboter, error) + func NewAll(netID int64, prvKey *ecdsa.PrivateKey, additional ...*Api) ([]Flashboter, error) + func NewMulti(netID int64, prvKey *ecdsa.PrivateKey, apis ...*Api) ([]Flashboter, error) + type Metadata struct + CoinbaseDiff string + EthSentToCoinbase string + GasFees string + type Params struct + BlockNum string + StateBlockNum string + type ParamsBundleStats struct + BundleHash string + type ParamsCancelPrivateTransaction struct + TxHash string + type ParamsGasEstimate struct + Txs []Tx + type ParamsPrivateTransaction struct + Preferences struct{ ... } + Tx string + МaxBlockNumber string + type ParamsSendCall struct + Txs []string + type Response struct + type Result struct + BundleGasPrice string + BundleHash string + Results []TxResult + type ResultBundleStats struct + Result BundleStats + type ResultUserStats struct + Result BundleUserStats + type SendPrivateTransactionResponse struct + Result string + type Tx struct + Data []byte + From common.Address + To common.Address + type TxResult struct + Error string + FromAddress string + GasPrice string + GasUsed uint64 + Revert string + TxHash string