Documentation ¶
Index ¶
- type BundleIdentifier
- type BundleStats
- type CallBundleParam
- type CalledBundle
- type Client
- func (c *Client) Call(ctx context.Context, result interface{}, method string, params ...interface{}) error
- func (c *Client) CallBundle(ctx context.Context, req CallBundleParam) (*CalledBundle, error)
- func (c *Client) CancelPrivateTransaction(ctx context.Context, hash common.Hash) (bool, error)
- func (c *Client) GetBundleStats(ctx context.Context, bundle BundleIdentifier) (*BundleStats, error)
- func (c *Client) GetUserStats(ctx context.Context, blockNumber uint64) (*UserStats, error)
- func (c *Client) SendBundle(ctx context.Context, req SendBundleParam) (*SentBundle, error)
- func (c *Client) SendPrivateTransaction(ctx context.Context, tx *types.Transaction, maxBlockNumber uint64, ...) (common.Hash, error)
- type HashSigner
- type RPCError
- type SendBundleParam
- type SentBundle
- type TxResult
- type UserStats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BundleIdentifier ¶
type BundleStats ¶
type CallBundleParam ¶
type CallBundleParam struct { Txs []*types.Transaction BlockNumber uint64 StateBlockNumber rpc.BlockNumber Timestamp time.Time }
type CalledBundle ¶
type CalledBundle struct { BundleHash common.Hash `json:"bundleHash"` BlockNumber uint64 `json:"-"` CoinbaseDiff *big.Int `json:"coinbaseDiff"` ETHSentToCoinbase *big.Int `json:"ethSentToCoinbase"` GasFees *big.Int `json:"gasFees"` TotalGasUsed uint64 `json:"totalGasUsed"` StateBlockNumber uint64 `json:"stateBlockNumber"` Results []TxResult `json:"results"` FirstRevert *TxResult `json:"firstRevert"` }
func (*CalledBundle) Identifier ¶
func (b *CalledBundle) Identifier() (hash common.Hash, blockNumber uint64)
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func DialWithSigner ¶
func (*Client) CallBundle ¶
func (c *Client) CallBundle(ctx context.Context, req CallBundleParam) (*CalledBundle, error)
func (*Client) CancelPrivateTransaction ¶
func (*Client) GetBundleStats ¶
func (c *Client) GetBundleStats(ctx context.Context, bundle BundleIdentifier) (*BundleStats, error)
func (*Client) GetUserStats ¶
func (*Client) SendBundle ¶
func (c *Client) SendBundle(ctx context.Context, req SendBundleParam) (*SentBundle, error)
type HashSigner ¶
type SendBundleParam ¶
type SendBundleParam struct { Txs []*types.Transaction BlockNumber uint64 MinTimestamp time.Time MaxTimestamp time.Time AllowRevertTxs []*types.Transaction }
type SentBundle ¶
func (*SentBundle) Identifier ¶
func (b *SentBundle) Identifier() (hash common.Hash, blockNumber uint64)
type TxResult ¶
type TxResult struct { CoinbaseDiff *big.Int `json:"coinbaseDiff"` ETHSentToCoinbase *big.Int `json:"ethSentToCoinbase"` GasFees *big.Int `json:"gasFees"` GasPrice *big.Int `json:"gasPrice"` GasUsed uint64 `json:"gasUsed"` From common.Address `json:"fromAddress"` To common.Address `json:"toAddress"` Hash common.Hash `json:"txHash"` Value *big.Int `json:"value"` Error string `json:"error"` Revert string `json:"revert"` }
type UserStats ¶
type UserStats struct { IsHighPriority bool `json:"is_high_priority"` AllTimeMinerPayments *big.Int `json:"all_time_miner_payments"` AllTimeGasSimulated *big.Int `json:"all_time_gas_simulated"` Last7DaysMinerPayments *big.Int `json:"last_7d_miner_payments"` Last7DaysGasSimulated *big.Int `json:"last_7d_gas_simulated"` Last1DayMinerPayments *big.Int `json:"last_1d_miner_payments"` Last1DayGasSimulated *big.Int `json:"last_1d_gas_simulated"` }
Click to show internal directories.
Click to hide internal directories.