Versions in this module Expand all Collapse all v0 v0.0.6 Mar 19, 2024 v0.0.5 Mar 19, 2024 Changes in this version + func NewTransactionFromBase64(txStr string) (solana.Transaction, error) + type Client struct + func NewClient(wallet Wallet, rpcEndpoint string, opts ...ClientOption) (Client, error) + func (e Client) CheckSignature(ctx context.Context, tx TxID) (bool, error) + func (e Client) SendTransactionOnChain(ctx context.Context, txBase64 string) (TxID, error) + type ClientOption func(*Client) error + func WithClientRPC(clientRPC ClientRPC) ClientOption + func WithMaxRetries(maxRetries uint) ClientOption + type ClientRPC interface + GetLatestBlockhash func(ctx context.Context, commitment rpc.CommitmentType) (out *rpc.GetLatestBlockhashResult, err error) + GetSignatureStatuses func(ctx context.Context, searchTransactionHistory bool, ...) (out *rpc.GetSignatureStatusesResult, err error) + SendTransactionWithOpts func(ctx context.Context, transaction *solana.Transaction, opts rpc.TransactionOpts) (signature solana.Signature, err error) + type TxID string + type Wallet struct + func NewWalletFromPrivateKeyBase58(privateKey string) (Wallet, error) + func (w Wallet) SignTransaction(tx solana.Transaction) (solana.Transaction, error)