Versions in this module Expand all Collapse all v1 v1.1.0 Jul 3, 2024 Changes in this version + var CommitmentConfirmed = CommitmentStatus + var CommitmentFinalized = CommitmentStatus + var CommitmentProcessed = CommitmentStatus + func NewTransactionFromBase64(txStr string) (solana.Transaction, error) + type Client interface + CheckSignature func(context.Context, TxID) (bool, error) + GetTokenAccountBalance func(context.Context, string) (TokenAccount, error) + SendTransactionOnChain func(context.Context, string) (TxID, error) + func NewClient(wallet Wallet, rpcEndpoint string, opts ...ClientOption) (Client, error) + type ClientOption func(*client) error + func WithClientRPC(clientRPC rpcService) ClientOption + func WithMaxRetries(maxRetries uint) ClientOption + type CommitmentStatus struct + func (cs CommitmentStatus) String() string + type Monitor interface + WaitForCommitmentStatus func(context.Context, TxID, CommitmentStatus) (MonitorResponse, error) + func NewMonitor(wsEndpoint string, opts ...MonitorOption) (Monitor, error) + type MonitorOption func(*monitor) error + func WithMonitorSubscriber(subscriber subscriberService) MonitorOption + type MonitorResponse struct + InstructionErr error + Ok bool + type SubResponse struct + InstructionErr error + Slot uint64 + type TokenAccount struct + Amount decimal.Decimal + Decimals uint8 + type TxID string + type Wallet struct + func NewWalletFromPrivateKeyBase58(privateKey string) (Wallet, error) + func (w Wallet) SignTransaction(tx solana.Transaction) (solana.Transaction, error)