Documentation ¶
Index ¶
- func MevSendBundle(r *MevSendBundleRequest) w3types.CallerFactory[common.Hash]
- type Client
- func (c *Client) CallBundle(rawTxs [][]byte) *flashbots.CallBundleResponse
- func (c *Client) GetBundleStats(bundleHash common.Hash) *flashbots.BundleStatsV2Response
- func (c *Client) GetUserStats() *flashbots.UserStatsV2Response
- func (c *Client) LatestBlock() *big.Int
- func (c *Client) LatestBlockPlus() *big.Int
- func (c *Client) MevSendBundle(rawTxs [][]byte) common.Hash
- func (c *Client) SendBundleWithRawTxs(rawTxs [][]byte) common.Hash
- func (c *Client) UserAddress() common.Address
- type MevBundleTx
- type MevParamInclusion
- type MevParamPrivacy
- type MevParamValidity
- type MevSendBundleRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MevSendBundle ¶ added in v0.7.0
func MevSendBundle(r *MevSendBundleRequest) w3types.CallerFactory[common.Hash]
SendBundle sends the bundle to the client's endpoint.
Types ¶
type Client ¶
type Client struct { PlusBlocks *big.Int SignerPublicKey *ecdsa.PublicKey // contains filtered or unexported fields }
func (*Client) CallBundle ¶
func (c *Client) CallBundle(rawTxs [][]byte) *flashbots.CallBundleResponse
func (*Client) GetBundleStats ¶
func (c *Client) GetBundleStats(bundleHash common.Hash) *flashbots.BundleStatsV2Response
func (*Client) GetUserStats ¶
func (c *Client) GetUserStats() *flashbots.UserStatsV2Response
func (*Client) LatestBlock ¶
LatestBlock gets the latest block number.
func (*Client) LatestBlockPlus ¶
LatestBlockPlus gets the latest block number plus the configured offset.
func (*Client) MevSendBundle ¶ added in v0.7.0
func (*Client) SendBundleWithRawTxs ¶
func (*Client) UserAddress ¶ added in v0.5.1
type MevBundleTx ¶ added in v0.7.0
type MevParamInclusion ¶ added in v0.7.0
type MevParamPrivacy ¶ added in v0.7.0
type MevParamPrivacy struct {
Hints []string `json:"hints,omitempty" mapstructure:"hints"`
}
type MevParamValidity ¶ added in v0.7.0
type MevParamValidity struct { Refund []struct { BodyIdx int64 `json:"bodyIdx" mapstructure:"bodyIdx"` Percent int64 `json:"percent" mapstructure:"percent"` } `json:"refund,omitempty" mapstructure:"refund"` RefundConfig []struct { Address string `json:"address" mapstructure:"address"` Percent int64 `json:"percent" mapstructure:"percent"` } `json:"refundConfig,omitempty" mapstructure:"refundConfig"` }
type MevSendBundleRequest ¶ added in v0.7.0
type MevSendBundleRequest struct { Version string `json:"version,omitempty" mapstructure:"version"` Inclusion MevParamInclusion `json:"inclusion,omitempty" mapstructure:"inclusion"` Body []MevBundleTx `json:"body" mapstructure:"body"` Privacy MevParamPrivacy `json:"privacy,omitempty"` Validity []MevParamValidity `json:"validity,omitempty" mapstructure:"validity"` }
Click to show internal directories.
Click to hide internal directories.