Versions in this module Expand all Collapse all v1 v1.23.11 May 10, 2023 v1.23.10 May 5, 2023 v1.23.9 Jan 26, 2023 v1.23.8 Jan 26, 2023 Changes in this version type Client + func (c *Client) GetAccountInfoAndContext(ctx context.Context, base58Addr string) (rpc.ValueWithContext[AccountInfo], error) + func (c *Client) GetAccountInfoAndContextWithConfig(ctx context.Context, base58Addr string, cfg GetAccountInfoConfig) (rpc.ValueWithContext[AccountInfo], error) + func (c *Client) GetBalanceAndContext(ctx context.Context, base58Addr string) (rpc.ValueWithContext[uint64], error) + func (c *Client) GetBalanceAndContextWithConfig(ctx context.Context, base58Addr string, cfg GetBalanceConfig) (rpc.ValueWithContext[uint64], error) + func (c *Client) GetFeeForMessageAndContext(ctx context.Context, message types.Message) (rpc.ValueWithContext[*uint64], error) + func (c *Client) GetFeeForMessageAndContextWithConfig(ctx context.Context, message types.Message, cfg GetFeeForMessageConfig) (rpc.ValueWithContext[*uint64], error) + func (c *Client) GetLatestBlockhashAndContext(ctx context.Context) (rpc.ValueWithContext[rpc.GetLatestBlockhashValue], error) + func (c *Client) GetLatestBlockhashAndContextWithConfig(ctx context.Context, cfg GetLatestBlockhashConfig) (rpc.ValueWithContext[rpc.GetLatestBlockhashValue], error) + func (c *Client) GetMinimumBalanceForRentExemptionWithConfig(ctx context.Context, dataLen uint64, ...) (uint64, error) + func (c *Client) GetMultipleAccountsAndContext(ctx context.Context, addrs []string) (rpc.ValueWithContext[[]AccountInfo], error) + func (c *Client) GetMultipleAccountsAndContextWithConfig(ctx context.Context, addrs []string, cfg GetMultipleAccountsConfig) (rpc.ValueWithContext[[]AccountInfo], error) + func (c *Client) GetTokenAccountBalanceAndContext(ctx context.Context, addr string) (rpc.ValueWithContext[TokenAmount], error) + func (c *Client) GetTokenAccountBalanceAndContextWithConfig(ctx context.Context, addr string, cfg GetTokenAccountBalanceConfig) (rpc.ValueWithContext[TokenAmount], error) + func (c *Client) GetTokenSupplyAndContext(ctx context.Context, mintAddr string) (rpc.ValueWithContext[TokenAmount], error) + func (c *Client) GetTokenSupplyAndContextWithConfig(ctx context.Context, mintAddr string, cfg GetTokenSupplyConfig) (rpc.ValueWithContext[TokenAmount], error) + func (c *Client) IsBlockhashValidAndContext(ctx context.Context, blockhash string) (rpc.ValueWithContext[bool], error) + func (c *Client) IsBlockhashValidAndContextWithConfig(ctx context.Context, blockhash string, cfg IsBlockhashValidConfig) (rpc.ValueWithContext[bool], error) + func (c *Client) RequestAirdropWithConfig(ctx context.Context, base58Addr string, lamports uint64, ...) (string, error) + func (c *Client) SimulateTransactionAndContext(ctx context.Context, tx types.Transaction) (rpc.ValueWithContext[SimulateTransaction], error) + func (c *Client) SimulateTransactionAndContextWithConfig(ctx context.Context, tx types.Transaction, cfg SimulateTransactionConfig) (rpc.ValueWithContext[SimulateTransaction], error) + type GetBalanceConfig struct + Commitment rpc.Commitment + type GetLatestBlockhashValue struct + Commitment rpc.Commitment + type GetMinimumBalanceForRentExemptionConfig struct + Commitment rpc.Commitment + type GetSignaturesForAddressConfig struct + Before string + Commitment rpc.Commitment + Limit int + Until string + type GetSlotConfig struct + Commitment rpc.Commitment + type GetTokenAccountBalanceConfig struct + Commitment rpc.Commitment + type GetTokenSupplyConfig struct + Commitment rpc.Commitment + type GetTransactionCountConfig struct + Commitment rpc.Commitment + type IsBlockhashValidConfig struct + Commitment rpc.Commitment + type RequestAirdropConfig struct + Commitment rpc.Commitment + type TokenAmount struct + Amount uint64 + Decimals uint8 + UIAmountString string type TransactionMeta + ComputeUnitsConsumed *uint64 + LoadedAddresses rpc.TransactionLoadedAddresses + ReturnData *ReturnData v1.23.7 Jan 17, 2023 v1.23.6 Dec 14, 2022 v1.23.5 Dec 13, 2022 v1.23.4 Dec 13, 2022 v1.23.3 Dec 13, 2022 v1.23.2 Dec 13, 2022 v1.23.1 Dec 13, 2022 Changes in this version + type AccountInfo struct + Data []byte + Executable bool + Lamports uint64 + Owner common.PublicKey + RentEpoch uint64 + type Client struct + RpcClient rpc.RpcClient + func New(opts ...rpc.Option) *Client + func NewClient(endpoint string) *Client + func (c *Client) GetAccountInfo(ctx context.Context, base58Addr string) (AccountInfo, error) + func (c *Client) GetAccountInfoWithConfig(ctx context.Context, base58Addr string, cfg GetAccountInfoConfig) (AccountInfo, error) + func (c *Client) GetBalance(ctx context.Context, base58Addr string) (uint64, error) + func (c *Client) GetBalanceWithConfig(ctx context.Context, base58Addr string, cfg rpc.GetBalanceConfig) (uint64, error) + func (c *Client) GetBlock(ctx context.Context, slot uint64) (GetBlockResponse, error) + func (c *Client) GetBlockTime(ctx context.Context, slot uint64) (int64, error) + func (c *Client) GetBlockWithConfig(ctx context.Context, slot uint64, cfg rpc.GetBlockConfig) (GetBlockResponse, error) + func (c *Client) GetClusterNodes(ctx context.Context) ([]ClusterNode, error) + func (c *Client) GetFeeForMessage(ctx context.Context, message types.Message) (*uint64, error) + func (c *Client) GetFeeForMessageWithConfig(ctx context.Context, message types.Message, cfg GetFeeForMessageConfig) (*uint64, error) + func (c *Client) GetFirstAvailableBlock(ctx context.Context) (uint64, error) + func (c *Client) GetGenesisHash(ctx context.Context) (string, error) + func (c *Client) GetIdentity(ctx context.Context) (string, error) + func (c *Client) GetLatestBlockhash(ctx context.Context) (rpc.GetLatestBlockhashValue, error) + func (c *Client) GetLatestBlockhashWithConfig(ctx context.Context, cfg GetLatestBlockhashConfig) (rpc.GetLatestBlockhashValue, error) + func (c *Client) GetMinimumBalanceForRentExemption(ctx context.Context, dataLen uint64) (uint64, error) + func (c *Client) GetMultipleAccounts(ctx context.Context, base58Addrs []string) ([]AccountInfo, error) + func (c *Client) GetMultipleAccountsWithConfig(ctx context.Context, base58Addrs []string, cfg GetMultipleAccountsConfig) ([]AccountInfo, error) + func (c *Client) GetNonceAccount(ctx context.Context, base58Addr string) (system.NonceAccount, error) + func (c *Client) GetNonceFromNonceAccount(ctx context.Context, base58Addr string) (string, error) + func (c *Client) GetSignatureStatus(ctx context.Context, signature string) (*rpc.SignatureStatus, error) + func (c *Client) GetSignatureStatusWithConfig(ctx context.Context, signature string, cfg rpc.GetSignatureStatusesConfig) (*rpc.SignatureStatus, error) + func (c *Client) GetSignatureStatuses(ctx context.Context, signatures []string) (rpc.SignatureStatuses, error) + func (c *Client) GetSignatureStatusesWithConfig(ctx context.Context, signatures []string, cfg rpc.GetSignatureStatusesConfig) (rpc.SignatureStatuses, error) + func (c *Client) GetSignaturesForAddress(ctx context.Context, base58Addr string) (rpc.GetSignaturesForAddress, error) + func (c *Client) GetSignaturesForAddressWithConfig(ctx context.Context, base58Addr string, cfg rpc.GetSignaturesForAddressConfig) (rpc.GetSignaturesForAddress, error) + func (c *Client) GetSlot(ctx context.Context) (uint64, error) + func (c *Client) GetSlotWithConfig(ctx context.Context, cfg rpc.GetSlotConfig) (uint64, error) + func (c *Client) GetTokenAccount(ctx context.Context, base58Addr string) (token.TokenAccount, error) + func (c *Client) GetTokenAccountBalance(ctx context.Context, base58Addr string) (uint64, uint8, error) + func (c *Client) GetTokenAccountBalanceWithConfig(ctx context.Context, base58Addr string, cfg rpc.GetTokenAccountBalanceConfig) (uint64, uint8, error) + func (c *Client) GetTokenAccountsByOwner(ctx context.Context, base58Addr string) (map[common.PublicKey]token.TokenAccount, error) + func (c *Client) GetTokenSupply(ctx context.Context, mintAddr string) (uint64, uint8, error) + func (c *Client) GetTokenSupplyWithConfig(ctx context.Context, mintAddr string, cfg rpc.GetTokenSupplyConfig) (uint64, uint8, error) + func (c *Client) GetTransaction(ctx context.Context, txhash string) (*GetTransactionResponse, error) + func (c *Client) GetTransactionCount(ctx context.Context) (uint64, error) + func (c *Client) GetTransactionCountWithConfig(ctx context.Context, cfg rpc.GetTransactionCountConfig) (uint64, error) + func (c *Client) GetTransactionWithConfig(ctx context.Context, txhash string, cfg rpc.GetTransactionConfig) (*GetTransactionResponse, error) + func (c *Client) GetVersion(ctx context.Context) (rpc.GetVersion, error) + func (c *Client) IsBlockhashValid(ctx context.Context, blockhash string) (bool, error) + func (c *Client) IsBlockhashValidWithConfig(ctx context.Context, blockhash string, cfg IsBlockhashConfig) (bool, error) + func (c *Client) MinimumLedgerSlot(ctx context.Context) (uint64, error) + func (c *Client) QuickSendTransaction(ctx context.Context, param QuickSendTransactionParam) (string, error) + func (c *Client) RequestAirdrop(ctx context.Context, base58Addr string, lamports uint64) (string, error) + func (c *Client) SendTransaction(ctx context.Context, tx types.Transaction) (string, error) + func (c *Client) SendTransactionWithConfig(ctx context.Context, tx types.Transaction, config SendTransactionConfig) (string, error) + func (c *Client) SimulateTransaction(ctx context.Context, tx types.Transaction) (SimulateTransaction, error) + func (c *Client) SimulateTransactionWithConfig(ctx context.Context, tx types.Transaction, cfg SimulateTransactionConfig) (SimulateTransaction, error) + type ClusterNode struct + FeatureSet *uint32 + Gossip *string + Pubkey common.PublicKey + Rpc *string + ShredVersion *uint16 + Tpu *string + Version *string + type GetAccountInfoConfig struct + Commitment rpc.Commitment + DataSlice *rpc.DataSlice + type GetBlockResponse struct + BlockHeight *int64 + BlockTime *int64 + Blockhash string + ParentSlot uint64 + PreviousBlockhash string + Rewards []rpc.GetBlockReward + Transactions []GetBlockTransaction + type GetBlockTransaction struct + Meta *TransactionMeta + Transaction types.Transaction + type GetFeeForMessageConfig struct + Commitment rpc.Commitment + type GetLatestBlockhashConfig struct + Commitment rpc.Commitment + type GetMultipleAccountsConfig struct + Commitment rpc.Commitment + DataSlice *rpc.DataSlice + type GetTransactionResponse struct + BlockTime *int64 + Meta *TransactionMeta + Slot uint64 + Transaction types.Transaction + type IsBlockhashConfig struct + Commitment rpc.Commitment + type QuickSendTransactionParam struct + FeePayer common.PublicKey + Instructions []types.Instruction + Signers []types.Account + type ReturnData struct + Data []byte + ProgramId common.PublicKey + type SendTransactionConfig struct + MaxRetries uint64 + PreflightCommitment rpc.Commitment + SkipPreflight bool + type SimulateTransaction struct + Accounts []*AccountInfo + Err any + Logs []string + ReturnData *ReturnData + type SimulateTransactionConfig struct + Addresses []string + Commitment rpc.Commitment + ReplaceRecentBlockhash bool + SigVerify bool + type TransactionMeta struct + Err any + Fee uint64 + InnerInstructions []TransactionMetaInnerInstruction + LogMessages []string + PostBalances []int64 + PostTokenBalances []rpc.TransactionMetaTokenBalance + PreBalances []int64 + PreTokenBalances []rpc.TransactionMetaTokenBalance + type TransactionMetaInnerInstruction struct + Index uint64 + Instructions []types.CompiledInstruction