Versions in this module Expand all Collapse all v0 v0.0.1 Jun 27, 2024 Changes in this version + const DefaultRelayURL + const TestRelayURL + type BundleResult struct + BundleHash string + type BundleStats struct + IsHighPriority bool + IsSentToMiners bool + IsSimulated bool + SentToMinersAt string + SimulatedAt string + SubmittedAt string + type CallResult struct + BundleGasPrice string + BundleHash string + CoinbaseDiff string + EthSentToCoinbase string + GasFees string + Results []txResult + StateBlockNumber uint64 + TotalGasUsed uint64 + func (cr *CallResult) String() string + func (r *CallResult) EffectiveGasPrice() (*big.Int, error) + type FlashBot struct + func NewFlashBot(providerURL, rpcRequestSigner string) (*FlashBot, error) + func (fb *FlashBot) CallRawBundle(transactions []string, blockNumber *big.Int, stateBlockNumber string) (*CallResult, error) + func (fb *FlashBot) GetBunderStats(bundleHash string, blockNumber *big.Int) (*BundleStats, error) + func (fb *FlashBot) GetUserStats(blockNumber *big.Int) (*UserStats, error) + func (fb *FlashBot) SendBundle(txs []*eTypes.Transaction, targetBlockNumber *big.Int) (*BundleResult, error) + func (fb *FlashBot) SendRawBundle(transactions []string, targetBlockNumber *big.Int) (*BundleResult, error) + func (fb *FlashBot) Simulate(txs []*eTypes.Transaction, blockNumber *big.Int, stateBlockNumber string) (*CallResult, error) + func (fb *FlashBot) SimulateRaw(transactions []string, blockNumber *big.Int, stateBlockNumber string) (*CallResult, error) + type UserStats struct + AllTimeGasSimulated string + AllTimeMinerPayments string + IsHighPriority bool + Last1dGasSimulated string + Last1dMinerPayments string + Last7dGasSimulated string + Last7dMinerPayments string