Documentation ¶
Index ¶
- func NewDroppedBundle(message string) error
- func NewInternalError(message string) error
- func NewSimulationFailureError(tx string, message string) error
- func NewStateAuctionBidRejectedError(auction string, tip uint64) error
- func NewWinningBatchBidRejectedError(auction string, tip uint64) error
- type Account
- type BundleRejectionError
- type Client
- func (c *Client) AssembleBundle(transactions []*solana.Transaction) (*proto.Bundle, error)
- func (c *Client) BroadcastBundle(transactions []*solana.Transaction, opts ...grpc.CallOption) (*proto.SendBundleResponse, error)
- func (c *Client) BroadcastBundleWithConfirmation(ctx context.Context, transactions []*solana.Transaction, ...) (*proto.SendBundleResponse, error)
- func (c *Client) GenerateTipInstruction(tipAmount uint64, from, tipAccount solana.PublicKey) solana.Instruction
- func (c *Client) GenerateTipRandomAccountInstruction(tipAmount uint64, from solana.PublicKey) (solana.Instruction, error)
- func (c *Client) GetConnectedLeaders(opts ...grpc.CallOption) (*proto.ConnectedLeadersResponse, error)
- func (c *Client) GetConnectedLeadersRegioned(regions []string, opts ...grpc.CallOption) (*proto.ConnectedLeadersRegionedResponse, error)
- func (c *Client) GetNextScheduledLeader(regions []string, opts ...grpc.CallOption) (*proto.NextScheduledLeaderResponse, error)
- func (c *Client) GetRandomTipAccount(opts ...grpc.CallOption) (string, error)
- func (c *Client) GetRegions(opts ...grpc.CallOption) (*proto.GetRegionsResponse, error)
- func (c *Client) GetTipAccounts(opts ...grpc.CallOption) (*proto.GetTipAccountsResponse, error)
- func (c *Client) NewMempoolStreamAccount(accounts, regions []string) (proto.SearcherService_SubscribeMempoolClient, error)
- func (c *Client) NewMempoolStreamProgram(programs, regions []string) (proto.SearcherService_SubscribeMempoolClient, error)
- func (c *Client) SimulateBundle(ctx context.Context, bundleParams SimulateBundleParams, ...) (*SimulatedBundleResponse, error)
- func (c *Client) SubscribeAccountsMempoolTransactions(payload *SubscribeAccountsMempoolTransactionsPayload) error
- func (c *Client) SubscribeBundleResults(opts ...grpc.CallOption) (proto.SearcherService_SubscribeBundleResultsClient, error)
- func (c *Client) SubscribeProgramsMempoolTransactions(payload *SubscribeProgramsMempoolTransactionsPayload) error
- type ExecutionAccounts
- type ReturnData
- type SimulateBundleConfig
- type SimulateBundleParams
- type SimulatedBundleResponse
- type SimulatedBundleResponseStruct
- type SubscribeAccountsMempoolTransactionsPayload
- type SubscribeProgramsMempoolTransactionsPayload
- type TransactionResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDroppedBundle ¶
func NewInternalError ¶
Types ¶
type BundleRejectionError ¶
type BundleRejectionError struct {
Message string
}
func (BundleRejectionError) Error ¶
func (e BundleRejectionError) Error() string
type Client ¶
type Client struct { GrpcConn *grpc.ClientConn RpcConn *rpc.Client SearcherService proto.SearcherServiceClient Auth *pkg.AuthenticationService ErrChan chan error GrpcErrChan chan error }
func NewSearcherClient ¶
func (*Client) AssembleBundle ¶
func (*Client) BroadcastBundle ¶
func (c *Client) BroadcastBundle(transactions []*solana.Transaction, opts ...grpc.CallOption) (*proto.SendBundleResponse, error)
func (*Client) BroadcastBundleWithConfirmation ¶
func (c *Client) BroadcastBundleWithConfirmation(ctx context.Context, transactions []*solana.Transaction, opts ...grpc.CallOption) (*proto.SendBundleResponse, error)
BroadcastBundleWithConfirmation is a function that sends a bundle of packets to the SearcherService and subscribes to the results.
func (*Client) GenerateTipInstruction ¶
func (c *Client) GenerateTipInstruction(tipAmount uint64, from, tipAccount solana.PublicKey) solana.Instruction
GenerateTipInstruction is a function that generates a Solana tip instruction.
func (*Client) GenerateTipRandomAccountInstruction ¶
func (*Client) GetConnectedLeaders ¶
func (c *Client) GetConnectedLeaders(opts ...grpc.CallOption) (*proto.ConnectedLeadersResponse, error)
func (*Client) GetConnectedLeadersRegioned ¶
func (c *Client) GetConnectedLeadersRegioned(regions []string, opts ...grpc.CallOption) (*proto.ConnectedLeadersRegionedResponse, error)
func (*Client) GetNextScheduledLeader ¶
func (c *Client) GetNextScheduledLeader(regions []string, opts ...grpc.CallOption) (*proto.NextScheduledLeaderResponse, error)
func (*Client) GetRandomTipAccount ¶
func (c *Client) GetRandomTipAccount(opts ...grpc.CallOption) (string, error)
func (*Client) GetRegions ¶
func (c *Client) GetRegions(opts ...grpc.CallOption) (*proto.GetRegionsResponse, error)
func (*Client) GetTipAccounts ¶
func (c *Client) GetTipAccounts(opts ...grpc.CallOption) (*proto.GetTipAccountsResponse, error)
func (*Client) NewMempoolStreamAccount ¶
func (c *Client) NewMempoolStreamAccount(accounts, regions []string) (proto.SearcherService_SubscribeMempoolClient, error)
NewMempoolStreamAccount creates a new mempool subscription on specific accounts.
func (*Client) NewMempoolStreamProgram ¶
func (c *Client) NewMempoolStreamProgram(programs, regions []string) (proto.SearcherService_SubscribeMempoolClient, error)
func (*Client) SimulateBundle ¶
func (c *Client) SimulateBundle(ctx context.Context, bundleParams SimulateBundleParams, simulationConfigs SimulateBundleConfig) (*SimulatedBundleResponse, error)
SimulateBundle is an RPC method that simulates a bundle – exclusively available to Jito-Solana validator.
func (*Client) SubscribeAccountsMempoolTransactions ¶
func (c *Client) SubscribeAccountsMempoolTransactions(payload *SubscribeAccountsMempoolTransactionsPayload) error
SubscribeAccountsMempoolTransactions subscribes to the mempool transactions of the provided accounts.
func (*Client) SubscribeBundleResults ¶
func (c *Client) SubscribeBundleResults(opts ...grpc.CallOption) (proto.SearcherService_SubscribeBundleResultsClient, error)
func (*Client) SubscribeProgramsMempoolTransactions ¶
func (c *Client) SubscribeProgramsMempoolTransactions(payload *SubscribeProgramsMempoolTransactionsPayload) error
SubscribeProgramsMempoolTransactions subscribes to the mempool transactions of the provided programs.
type ExecutionAccounts ¶
type ReturnData ¶
type SimulateBundleConfig ¶
type SimulateBundleConfig struct { PreExecutionAccountsConfigs []ExecutionAccounts `json:"preExecutionAccountsConfigs"` PostExecutionAccountsConfigs []ExecutionAccounts `json:"postExecutionAccountsConfigs"` }
type SimulateBundleParams ¶
type SimulateBundleParams struct {
EncodedTransactions []string `json:"encodedTransactions"`
}
type SimulatedBundleResponse ¶
type SimulatedBundleResponse struct { Context interface{} `json:"context"` Value SimulatedBundleResponseStruct `json:"value"` }
type SimulatedBundleResponseStruct ¶
type SimulatedBundleResponseStruct struct { Summary interface{} `json:"summary"` TransactionResult []TransactionResult `json:"transactionResults"` }
type TransactionResult ¶
type TransactionResult struct { Err interface{} `json:"err,omitempty"` Logs []string `json:"logs,omitempty"` PreExecutionAccounts []Account `json:"preExecutionAccounts,omitempty"` PostExecutionAccounts []Account `json:"postExecutionAccounts,omitempty"` UnitsConsumed *int `json:"unitsConsumed,omitempty"` ReturnData *ReturnData `json:"returnData,omitempty"` }
Click to show internal directories.
Click to hide internal directories.