Documentation
¶
Index ¶
- type AccountInfo
- type Client
- func (c *Client) GetAccountInfo(ctx context.Context, base58Addr string) (AccountInfo, error)
- 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) GetAccountInfoWithConfig(ctx context.Context, base58Addr string, cfg GetAccountInfoConfig) (AccountInfo, error)
- func (c *Client) GetBalance(ctx context.Context, base58Addr string) (uint64, 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) GetBalanceWithConfig(ctx context.Context, base58Addr string, cfg 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) 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) 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) (rpc.GetIdentity, error)
- func (c *Client) GetLatestBlockhash(ctx context.Context) (rpc.GetLatestBlockhashValue, 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) GetLatestBlockhashWithConfig(ctx context.Context, cfg GetLatestBlockhashConfig) (rpc.GetLatestBlockhashValue, error)
- func (c *Client) GetMinimumBalanceForRentExemption(ctx context.Context, dataLen uint64) (uint64, error)
- func (c *Client) GetMinimumBalanceForRentExemptionWithConfig(ctx context.Context, dataLen uint64, ...) (uint64, error)
- func (c *Client) GetMultipleAccounts(ctx context.Context, addrs []string) ([]AccountInfo, 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) GetMultipleAccountsWithConfig(ctx context.Context, addrs []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, addr string) (rpc.GetSignaturesForAddress, error)
- func (c *Client) GetSignaturesForAddressWithConfig(ctx context.Context, addr string, cfg GetSignaturesForAddressConfig) (rpc.GetSignaturesForAddress, error)
- func (c *Client) GetSlot(ctx context.Context) (uint64, error)
- func (c *Client) GetSlotWithConfig(ctx context.Context, cfg GetSlotConfig) (uint64, error)
- func (c *Client) GetTokenAccount(ctx context.Context, base58Addr string) (token.TokenAccount, error)
- func (c *Client) GetTokenAccountBalance(ctx context.Context, addr string) (TokenAmount, 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) GetTokenAccountBalanceWithConfig(ctx context.Context, addr string, cfg GetTokenAccountBalanceConfig) (TokenAmount, 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) (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) GetTokenSupplyWithConfig(ctx context.Context, mintAddr string, cfg GetTokenSupplyConfig) (TokenAmount, 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 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) 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) IsBlockhashValidWithConfig(ctx context.Context, blockhash string, cfg IsBlockhashValidConfig) (bool, error)
- func (c *Client) MinimumLedgerSlot(ctx context.Context) (uint64, error)
- func (c *Client) QuickSendTransaction(ctx context.Context, param QuickSendTransactionParam) (string, error)deprecated
- func (c *Client) RequestAirdrop(ctx context.Context, base58Addr string, lamports uint64) (string, error)
- func (c *Client) RequestAirdropWithConfig(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, cfg SendTransactionConfig) (string, error)
- func (c *Client) SimulateTransaction(ctx context.Context, tx types.Transaction) (SimulateTransaction, 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)
- func (c *Client) SimulateTransactionWithConfig(ctx context.Context, tx types.Transaction, cfg SimulateTransactionConfig) (SimulateTransaction, error)
- type ClusterNode
- type GetAccountInfoConfig
- type GetBalanceConfig
- type GetBlockResponse
- type GetBlockTransaction
- type GetFeeForMessageConfig
- type GetLatestBlockhashConfig
- type GetLatestBlockhashValue
- type GetMinimumBalanceForRentExemptionConfig
- type GetMultipleAccountsConfig
- type GetSignaturesForAddressConfig
- type GetSlotConfig
- type GetTokenAccountBalanceConfig
- type GetTokenSupplyConfig
- type GetTransactionCountConfig
- type GetTransactionResponse
- type IsBlockhashValidConfig
- type QuickSendTransactionParam
- type RequestAirdropConfig
- type ReturnData
- type SendTransactionConfig
- type SimulateTransaction
- type SimulateTransactionConfig
- type TokenAmount
- type TransactionMeta
- type TransactionMetaInnerInstruction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountInfo ¶
type Client ¶
func (*Client) GetAccountInfo ¶
GetAccountInfo return account's info
func (*Client) GetAccountInfoAndContext ¶ added in v1.23.8
func (c *Client) GetAccountInfoAndContext(ctx context.Context, base58Addr string) (rpc.ValueWithContext[AccountInfo], error)
GetAccountInfoAndContext return account's info
func (*Client) GetAccountInfoAndContextWithConfig ¶ added in v1.23.8
func (c *Client) GetAccountInfoAndContextWithConfig(ctx context.Context, base58Addr string, cfg GetAccountInfoConfig) (rpc.ValueWithContext[AccountInfo], error)
GetAccountInfoAndContextWithConfig return account's info
func (*Client) GetAccountInfoWithConfig ¶
func (c *Client) GetAccountInfoWithConfig(ctx context.Context, base58Addr string, cfg GetAccountInfoConfig) (AccountInfo, error)
GetAccountInfoWithConfig return account's info
func (*Client) GetBalance ¶
GetBalance fetch users lamports(SOL) balance
func (*Client) GetBalanceAndContext ¶ added in v1.23.8
func (c *Client) GetBalanceAndContext(ctx context.Context, base58Addr string) (rpc.ValueWithContext[uint64], error)
GetBalanceAndContext fetch users lamports(SOL) balance
func (*Client) GetBalanceAndContextWithConfig ¶ added in v1.23.8
func (c *Client) GetBalanceAndContextWithConfig(ctx context.Context, base58Addr string, cfg GetBalanceConfig) (rpc.ValueWithContext[uint64], error)
GetBalanceAndContextWithConfig fetch users lamports(SOL) balance with specific commitment
func (*Client) GetBalanceWithConfig ¶
func (c *Client) GetBalanceWithConfig(ctx context.Context, base58Addr string, cfg GetBalanceConfig) (uint64, error)
GetBalanceWithConfig fetch users lamports(SOL) balance with specific commitment
func (*Client) GetBlock ¶
GetBlock returns identity and transaction information about a confirmed block in the ledger
func (*Client) GetBlockTime ¶
GetBlockTime returns the estimated production time of a block.
func (*Client) GetBlockWithConfig ¶
func (c *Client) GetBlockWithConfig(ctx context.Context, slot uint64, cfg rpc.GetBlockConfig) (GetBlockResponse, error)
GetBlockWithConfig returns identity and transaction information about a confirmed block in the ledger
func (*Client) GetClusterNodes ¶
func (c *Client) GetClusterNodes(ctx context.Context) ([]ClusterNode, error)
GetClusterNodes returns information about all the nodes participating in the cluster
func (*Client) GetFeeForMessage ¶
func (*Client) GetFeeForMessageAndContext ¶ added in v1.23.8
func (*Client) GetFeeForMessageAndContextWithConfig ¶ added in v1.23.8
func (c *Client) GetFeeForMessageAndContextWithConfig(ctx context.Context, message types.Message, cfg GetFeeForMessageConfig) (rpc.ValueWithContext[*uint64], error)
func (*Client) GetFeeForMessageWithConfig ¶
func (*Client) GetFirstAvailableBlock ¶
GetFirstAvailableBlock returns the slot of the lowest confirmed block that has not been purged from the ledger
func (*Client) GetGenesisHash ¶
GetGenesisHash returns the genesis hash
func (*Client) GetIdentity ¶
GetIdentity returns the identity pubkey for the current node
func (*Client) GetLatestBlockhash ¶
GetLatestBlockhash returns the latest blockhash
func (*Client) GetLatestBlockhashAndContext ¶ added in v1.23.8
func (c *Client) GetLatestBlockhashAndContext(ctx context.Context) (rpc.ValueWithContext[rpc.GetLatestBlockhashValue], error)
GetLatestBlockhashAndContext returns the latest blockhash
func (*Client) GetLatestBlockhashAndContextWithConfig ¶ added in v1.23.8
func (c *Client) GetLatestBlockhashAndContextWithConfig(ctx context.Context, cfg GetLatestBlockhashConfig) (rpc.ValueWithContext[rpc.GetLatestBlockhashValue], error)
GetLatestBlockhashAndContextWithConfig returns the latest blockhash
func (*Client) GetLatestBlockhashWithConfig ¶
func (c *Client) GetLatestBlockhashWithConfig(ctx context.Context, cfg GetLatestBlockhashConfig) (rpc.GetLatestBlockhashValue, error)
GetLatestBlockhash returns the latest blockhash
func (*Client) GetMinimumBalanceForRentExemption ¶
func (c *Client) GetMinimumBalanceForRentExemption(ctx context.Context, dataLen uint64) (uint64, error)
GetMinimumBalanceForRentExemption returns minimum balance required to make account rent exempt
func (*Client) GetMinimumBalanceForRentExemptionWithConfig ¶ added in v1.23.8
func (c *Client) GetMinimumBalanceForRentExemptionWithConfig(ctx context.Context, dataLen uint64, cfg GetMinimumBalanceForRentExemptionConfig) (uint64, error)
GetMinimumBalanceForRentExemption returns minimum balance required to make account rent exempt
func (*Client) GetMultipleAccounts ¶
GetMultipleAccounts returns multiple accounts info
func (*Client) GetMultipleAccountsAndContext ¶ added in v1.23.8
func (c *Client) GetMultipleAccountsAndContext(ctx context.Context, addrs []string) (rpc.ValueWithContext[[]AccountInfo], error)
GetMultipleAccounts returns multiple accounts info
func (*Client) GetMultipleAccountsAndContextWithConfig ¶ added in v1.23.8
func (c *Client) GetMultipleAccountsAndContextWithConfig(ctx context.Context, addrs []string, cfg GetMultipleAccountsConfig) (rpc.ValueWithContext[[]AccountInfo], error)
GetMultipleAccountsWithConfig return account's info
func (*Client) GetMultipleAccountsWithConfig ¶
func (c *Client) GetMultipleAccountsWithConfig(ctx context.Context, addrs []string, cfg GetMultipleAccountsConfig) ([]AccountInfo, error)
GetMultipleAccountsWithConfig return account's info
func (*Client) GetNonceAccount ¶
func (*Client) GetNonceFromNonceAccount ¶
func (*Client) GetSignatureStatus ¶
func (*Client) GetSignatureStatusWithConfig ¶
func (c *Client) GetSignatureStatusWithConfig(ctx context.Context, signature string, cfg rpc.GetSignatureStatusesConfig) (*rpc.SignatureStatus, error)
func (*Client) GetSignatureStatuses ¶
func (*Client) GetSignatureStatusesWithConfig ¶
func (c *Client) GetSignatureStatusesWithConfig(ctx context.Context, signatures []string, cfg rpc.GetSignatureStatusesConfig) (rpc.SignatureStatuses, error)
func (*Client) GetSignaturesForAddress ¶
func (*Client) GetSignaturesForAddressWithConfig ¶
func (c *Client) GetSignaturesForAddressWithConfig(ctx context.Context, addr string, cfg GetSignaturesForAddressConfig) (rpc.GetSignaturesForAddress, error)
func (*Client) GetSlotWithConfig ¶
GetSlotWithConfig get slot by commitment
func (*Client) GetTokenAccount ¶
func (*Client) GetTokenAccountBalance ¶
func (*Client) GetTokenAccountBalanceAndContext ¶ added in v1.23.8
func (c *Client) GetTokenAccountBalanceAndContext(ctx context.Context, addr string) (rpc.ValueWithContext[TokenAmount], error)
func (*Client) GetTokenAccountBalanceAndContextWithConfig ¶ added in v1.23.8
func (c *Client) GetTokenAccountBalanceAndContextWithConfig(ctx context.Context, addr string, cfg GetTokenAccountBalanceConfig) (rpc.ValueWithContext[TokenAmount], error)
func (*Client) GetTokenAccountBalanceWithConfig ¶
func (c *Client) GetTokenAccountBalanceWithConfig(ctx context.Context, addr string, cfg GetTokenAccountBalanceConfig) (TokenAmount, error)
func (*Client) GetTokenAccountsByOwner ¶
func (*Client) GetTokenSupply ¶
func (*Client) GetTokenSupplyAndContext ¶ added in v1.23.8
func (c *Client) GetTokenSupplyAndContext(ctx context.Context, mintAddr string) (rpc.ValueWithContext[TokenAmount], error)
func (*Client) GetTokenSupplyAndContextWithConfig ¶ added in v1.23.8
func (c *Client) GetTokenSupplyAndContextWithConfig(ctx context.Context, mintAddr string, cfg GetTokenSupplyConfig) (rpc.ValueWithContext[TokenAmount], error)
func (*Client) GetTokenSupplyWithConfig ¶
func (c *Client) GetTokenSupplyWithConfig(ctx context.Context, mintAddr string, cfg GetTokenSupplyConfig) (TokenAmount, error)
func (*Client) GetTransaction ¶
func (c *Client) GetTransaction(ctx context.Context, txhash string) (*GetTransactionResponse, error)
GetTransaction returns transaction details for a confirmed transaction
func (*Client) GetTransactionCount ¶
GetTransactionCount returns the current Transaction count from the ledger
func (*Client) GetTransactionCountWithConfig ¶
func (c *Client) GetTransactionCountWithConfig(ctx context.Context, cfg GetTransactionCountConfig) (uint64, error)
GetTransactionCount returns the current Transaction count from the ledger
func (*Client) GetTransactionWithConfig ¶
func (c *Client) GetTransactionWithConfig(ctx context.Context, txhash string, cfg rpc.GetTransactionConfig) (*GetTransactionResponse, error)
GetTransactionWithConfig returns transaction details for a confirmed transaction will ignore encoding
func (*Client) GetVersion ¶
GetVersion returns the current solana versions running on the node
func (*Client) IsBlockhashValid ¶
func (*Client) IsBlockhashValidAndContext ¶ added in v1.23.8
func (*Client) IsBlockhashValidAndContextWithConfig ¶ added in v1.23.8
func (c *Client) IsBlockhashValidAndContextWithConfig(ctx context.Context, blockhash string, cfg IsBlockhashValidConfig) (rpc.ValueWithContext[bool], error)
func (*Client) IsBlockhashValidWithConfig ¶
func (*Client) MinimumLedgerSlot ¶
MinimumLedgerSlot returns the lowest slot that the node has information about in its ledger. This value may increase over time if the node is configured to purge older ledger data
func (*Client) QuickSendTransaction
deprecated
func (*Client) RequestAirdrop ¶
func (c *Client) RequestAirdrop(ctx context.Context, base58Addr string, lamports uint64) (string, error)
RequestAirdrop requests an airdrop of lamports to a Pubkey
func (*Client) RequestAirdropWithConfig ¶ added in v1.23.8
func (c *Client) RequestAirdropWithConfig(ctx context.Context, base58Addr string, lamports uint64, cfg RequestAirdropConfig) (string, error)
RequestAirdrop requests an airdrop of lamports to a Pubkey
func (*Client) SendTransaction ¶
SendTransaction send transaction struct directly
func (*Client) SendTransactionWithConfig ¶
func (c *Client) SendTransactionWithConfig(ctx context.Context, tx types.Transaction, cfg SendTransactionConfig) (string, error)
SendTransaction send transaction struct directly
func (*Client) SimulateTransaction ¶
func (c *Client) SimulateTransaction(ctx context.Context, tx types.Transaction) (SimulateTransaction, error)
func (*Client) SimulateTransactionAndContext ¶ added in v1.23.8
func (c *Client) SimulateTransactionAndContext(ctx context.Context, tx types.Transaction) (rpc.ValueWithContext[SimulateTransaction], error)
func (*Client) SimulateTransactionAndContextWithConfig ¶ added in v1.23.8
func (c *Client) SimulateTransactionAndContextWithConfig(ctx context.Context, tx types.Transaction, cfg SimulateTransactionConfig) (rpc.ValueWithContext[SimulateTransaction], error)
func (*Client) SimulateTransactionWithConfig ¶
func (c *Client) SimulateTransactionWithConfig(ctx context.Context, tx types.Transaction, cfg SimulateTransactionConfig) (SimulateTransaction, error)
type ClusterNode ¶
type GetAccountInfoConfig ¶
type GetAccountInfoConfig struct { Commitment rpc.Commitment DataSlice *rpc.DataSlice }
type GetBalanceConfig ¶ added in v1.23.8
type GetBalanceConfig struct {
Commitment rpc.Commitment
}
type GetBlockResponse ¶
type GetBlockResponse struct { Blockhash string BlockTime *int64 BlockHeight *int64 PreviousBlockhash string ParentSlot uint64 Transactions []GetBlockTransaction Rewards []rpc.GetBlockReward }
type GetBlockTransaction ¶
type GetBlockTransaction struct { Meta *TransactionMeta Transaction types.Transaction }
type GetFeeForMessageConfig ¶
type GetFeeForMessageConfig struct {
Commitment rpc.Commitment
}
type GetLatestBlockhashConfig ¶
type GetLatestBlockhashConfig struct {
Commitment rpc.Commitment
}
type GetLatestBlockhashValue ¶ added in v1.23.8
type GetLatestBlockhashValue struct {
Commitment rpc.Commitment
}
type GetMinimumBalanceForRentExemptionConfig ¶ added in v1.23.8
type GetMinimumBalanceForRentExemptionConfig struct {
Commitment rpc.Commitment
}
type GetMultipleAccountsConfig ¶
type GetMultipleAccountsConfig struct { Commitment rpc.Commitment DataSlice *rpc.DataSlice }
type GetSignaturesForAddressConfig ¶ added in v1.23.8
type GetSignaturesForAddressConfig struct { Limit int Before string Until string Commitment rpc.Commitment }
type GetSlotConfig ¶ added in v1.23.8
type GetSlotConfig struct {
Commitment rpc.Commitment
}
type GetTokenAccountBalanceConfig ¶ added in v1.23.8
type GetTokenAccountBalanceConfig struct {
Commitment rpc.Commitment
}
type GetTokenSupplyConfig ¶ added in v1.23.8
type GetTokenSupplyConfig struct {
Commitment rpc.Commitment
}
type GetTransactionCountConfig ¶ added in v1.23.8
type GetTransactionCountConfig struct {
Commitment rpc.Commitment
}
type GetTransactionResponse ¶
type GetTransactionResponse struct { Slot uint64 Meta *TransactionMeta Transaction types.Transaction BlockTime *int64 }
type IsBlockhashValidConfig ¶ added in v1.23.8
type IsBlockhashValidConfig struct {
Commitment rpc.Commitment
}
type RequestAirdropConfig ¶ added in v1.23.8
type RequestAirdropConfig struct {
Commitment rpc.Commitment
}
type ReturnData ¶
type SendTransactionConfig ¶
type SendTransactionConfig struct { SkipPreflight bool PreflightCommitment rpc.Commitment MaxRetries uint64 }
type SimulateTransaction ¶
type SimulateTransaction struct { Err any Logs []string Accounts []*AccountInfo ReturnData *ReturnData }
type SimulateTransactionConfig ¶
type SimulateTransactionConfig struct { SigVerify bool Commitment rpc.Commitment ReplaceRecentBlockhash bool Addresses []string }
type TokenAmount ¶ added in v1.23.8
type TransactionMeta ¶
type TransactionMeta struct { Err any Fee uint64 PreBalances []int64 PostBalances []int64 PreTokenBalances []rpc.TransactionMetaTokenBalance PostTokenBalances []rpc.TransactionMetaTokenBalance LogMessages []string InnerInstructions []TransactionMetaInnerInstruction LoadedAddresses rpc.TransactionLoadedAddresses ReturnData *ReturnData ComputeUnitsConsumed *uint64 }
type TransactionMetaInnerInstruction ¶
type TransactionMetaInnerInstruction struct { Index uint64 Instructions []types.CompiledInstruction }
Source Files
¶
- client.go
- rpc.go
- rpc_get_account_info.go
- rpc_get_balance.go
- rpc_get_block_time.go
- rpc_get_cluster_node.go
- rpc_get_fee_for_message.go
- rpc_get_first_available_block.go
- rpc_get_genesis_hash.go
- rpc_get_identity.go
- rpc_get_latest_blockhash.go
- rpc_get_minimum_balance_for_rent_exemption.go
- rpc_get_multiple_accounts.go
- rpc_get_signatures_for_address.go
- rpc_get_slot.go
- rpc_get_token_account_balance.go
- rpc_get_token_supply.go
- rpc_get_transaction_count.go
- rpc_get_version.go
- rpc_is_blockhash_valid.go
- rpc_minimum_ledger_slot.go
- rpc_request_airdrop.go
- rpc_send_transaction.go
- rpc_simulate_transaction.go
- system.go
- token.go