Documentation ¶
Index ¶
- Constants
- type BundleResult
- type BundleStats
- type CallResult
- type FlashBot
- 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
Constants ¶
View Source
const ( DefaultRelayURL = "https://relay.flashbots.net" TestRelayURL = "https://relay-goerli.flashbots.net" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BundleResult ¶
type BundleResult struct {
BundleHash string `json:"bundleHash"`
}
type BundleStats ¶
type CallResult ¶
type CallResult struct { BundleGasPrice string `json:"bundleGasPrice"` BundleHash string `json:"bundleHash"` CoinbaseDiff string `json:"coinbaseDiff"` EthSentToCoinbase string `json:"ethSentToCoinbase"` GasFees string `json:"gasFees"` Results []txResult `json:"results"` StateBlockNumber uint64 `json:"stateBlockNumber"` TotalGasUsed uint64 `json:"totalGasUsed"` }
func (*CallResult) EffectiveGasPrice ¶
func (r *CallResult) EffectiveGasPrice() (*big.Int, error)
func (*CallResult) String ¶
func (cr *CallResult) String() string
type FlashBot ¶
type FlashBot struct {
// contains filtered or unexported fields
}
func NewFlashBot ¶
NewFlashBot, init flashbot instance providerURL: flashbot provider http url rpcRequestSigner: private key for signing request message proxyAddr: http proxy or socks5 proxy addr
func (*FlashBot) CallRawBundle ¶
func (*FlashBot) GetBunderStats ¶
func (*FlashBot) GetUserStats ¶
func (*FlashBot) SendBundle ¶
func (fb *FlashBot) SendBundle(txs []*eTypes.Transaction, targetBlockNumber *big.Int) (*BundleResult, error)
func (*FlashBot) SendRawBundle ¶
func (*FlashBot) Simulate ¶
func (fb *FlashBot) Simulate( txs []*eTypes.Transaction, blockNumber *big.Int, stateBlockNumber string, ) (*CallResult, error)
func (*FlashBot) SimulateRaw ¶
type UserStats ¶
type UserStats struct { IsHighPriority bool `json:"is_high_priority"` AllTimeMinerPayments string `json:"all_time_miner_payments"` AllTimeGasSimulated string `json:"all_time_gas_simulated"` Last7dMinerPayments string `json:"last_7d_miner_payments"` Last7dGasSimulated string `json:"last_7d_gas_simulated"` Last1dMinerPayments string `json:"last_1d_miner_payments"` Last1dGasSimulated string `json:"last_1d_gas_simulated"` }
Click to show internal directories.
Click to hide internal directories.