Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auction ¶
type Auction struct { Id string FeeRecipient string ClosesAt time.Time ChainId int64 CreatedAt time.Time Connection *websocket.Conn Transaction *AuctionTransaction }
func (*Auction) SendRawBid ¶
type AuctionOptions ¶
type AuctionOptions struct { Transaction *types.Transaction FeeRecipient common.Address }
type AuctionTransaction ¶
type BuilderSDK ¶
type BuilderSDK struct {
// contains filtered or unexported fields
}
func NewBuilderSDK ¶
func NewBuilderSDK(sdk *MerkleSDK) *BuilderSDK
type BundleParams ¶
type MerkleChainId ¶
type MerkleChainId int32
const ( EthereumMainnet MerkleChainId = 1 PolygonMainnet MerkleChainId = 137 BnbMainnet MerkleChainId = 56 )
type MerkleSDK ¶
type MerkleSDK struct { ApiKey string // contains filtered or unexported fields }
func (*MerkleSDK) Builder ¶
func (m *MerkleSDK) Builder() *BuilderSDK
func (*MerkleSDK) Pool ¶
func (m *MerkleSDK) Pool() *PrivatePool
func (*MerkleSDK) Transactions ¶
func (m *MerkleSDK) Transactions() *TransactionStream
type MerkleTrace ¶ added in v0.18.0
type MerkleTrace struct { Hash string `json:"hash"` FirstSeenAt time.Time `json:"firstSeenAt"` ChainId MerkleChainId `json:"chainId"` Trace []Observation `json:"trace"` TxData string `json:"txData"` }
type Observation ¶ added in v0.18.0
type PrivatePool ¶
type PrivatePool struct {
// contains filtered or unexported fields
}
func NewPrivatePool ¶
func NewPrivatePool(sdk *MerkleSDK) *PrivatePool
func (*PrivatePool) Auctions ¶
func (p *PrivatePool) Auctions() (chan *Auction, chan error)
func (*PrivatePool) CreateAuction ¶
func (p *PrivatePool) CreateAuction(options *AuctionOptions) error
type RawAuction ¶
type RawAuction struct { Id string `json:"id"` FeeRecipient string `json:"fee_recipient"` ClosesAtUnix int64 `json:"closes_at_unix"` ChainId int64 `json:"chain_id"` CreatedAt int64 `json:"created_at_unix"` Transaction struct { Data string `json:"data"` From string `json:"from"` Gas int64 `json:"gas"` Hash string `json:"hash"` To string `json:"to"` Value string `json:"value"` } `json:"transaction"` }
type RelaySubmitRequest ¶
type RelaySubmitRequest struct { Method string `json:"method"` Params []BundleParams `json:"params"` Jsonrpc string `json:"jsonrpc"` }
type TransactionStream ¶
type TransactionStream struct {
// contains filtered or unexported fields
}
func NewTransactionStream ¶
func NewTransactionStream(sdk *MerkleSDK) *TransactionStream
func (*TransactionStream) Stream ¶
func (t *TransactionStream) Stream(chainId MerkleChainId) (chan *types.Transaction, chan error)
func (*TransactionStream) Trace ¶ added in v0.18.0
func (t *TransactionStream) Trace(hash string) (*MerkleTrace, error)
trace a transaction
Click to show internal directories.
Click to hide internal directories.