Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CommitmentFinalized = CommitmentStatus{"finalized"} CommitmentConfirmed = CommitmentStatus{"confirmed"} CommitmentProcessed = CommitmentStatus{"processed"} )
For more information, see https://docs.solanalabs.com/consensus/commitments
Functions ¶
func NewTransactionFromBase64 ¶
NewTransactionFromBase64 deserializes a transaction from a base64 string.
Types ¶
type Client ¶
type ClientOption ¶
type ClientOption func(*client) error
ClientOption is a function that allows to specify options for the client.
func WithClientRPC ¶
func WithClientRPC(clientRPC rpcService) ClientOption
WithClientRPC sets the RPC service for the client.
func WithMaxRetries ¶
func WithMaxRetries(maxRetries uint) ClientOption
WithMaxRetries sets the maximum number of retries for the engine when sending a transaction on-chain
type CommitmentStatus ¶
type CommitmentStatus struct {
// contains filtered or unexported fields
}
func (CommitmentStatus) String ¶
func (cs CommitmentStatus) String() string
type Monitor ¶
type Monitor interface {
WaitForCommitmentStatus(context.Context, TxID, CommitmentStatus) (MonitorResponse, error)
}
func NewMonitor ¶
func NewMonitor(wsEndpoint string, opts ...MonitorOption) (Monitor, error)
type MonitorOption ¶
type MonitorOption func(*monitor) error
MonitorOption is a function that allows to specify options for the monitor.
func WithMonitorSubscriber ¶
func WithMonitorSubscriber(subscriber subscriberService) MonitorOption
WithMonitorSubscriber sets the subscriber service for the monitor.
type MonitorResponse ¶
type SubResponse ¶
type TokenAccount ¶
type Wallet ¶
type Wallet struct {
*solana.Wallet
}
Wallet is a wrapper around a solana.Wallet
func (Wallet) SignTransaction ¶
SignTransaction signs a transaction with the wallet's private key.
Click to show internal directories.
Click to hide internal directories.