solana_wallet_provider library

Imports

Classes

Account
Account
AccountInfo<T>
Account Info
AccountMeta
Account Meta
AccountsFilter
Accounts Filter
AccountSubscribe
Account Subscribe
AccountSubscribeConfig
Account Subscribe Config
AddressLookupTableAccount
Address Lookup Table Account
AddressLookupTableProgram
Address Lookup Table Program
AddressLookupTableState
Address Lookup Table State
AppIdentity
App Identity
AppInfo
App Information
AppStore
App Store
AssociatedTokenProgram
Associated Token Program
Association
Association
Authorized
Authorized
AuthorizeParams
Authorize Params
AuthorizeResult
Authorize Result
Base58To64Codec
Converts a base-58 encoded string to/from a base-64 encoded string.
Base58To64Decoder
Base-58 to Base-64 Decoder
Base58To64Encoder
Base-58 to Base-64 Encoder
Block
Block
BlockCommitment
Block Commitment
BlockhashCache
Blockhash Cache
BlockhashWithExpiryBlockHeight
Blockhash With Expiry Block Height
BlockProduction
Block Production
Buffer
Buffer
BufferReader
Buffer Reader
BufferReaderIterator
Buffer Reader Iterator
BufferWriter
Buffer Writer
ByteLength
Byte Length
Client<R>
JSON RPC Client
CloneAuthorizationParams
Clone Authorization Params
CloneAuthorizationResult
Clone Authorization Result
Cluster
Cluster
ClusterNode
Cluster Node
CommitmentAndMinContextSlotConfig
Commitment and Min Context Slot Config
CommitmentConfig
Commitment Config
ComputeBudgetProgram
Compute Budget Program
ConfirmedSignatureInfo
Confirmed Signature Info
Connection
Connection
DataSize
Data Size
DataSlice
Data Slice
DataV2
Data V2
DeauthorizeParams
Deauthorize Params
DeauthorizeResult
Deauthorize Result
Delegation
Delegation
Ed25519Keypair
Ed25519 Keypair
Ed25519Program
Ed25519 Program
EpochInfo
Epoch Info
EpochSchedule
Epoch Schedule
Fee
Fee
FeeCalculator
Fee Calculator
FeeType
Fee Type
Filter
GetAccountInfo<T>
Get Account Info
GetAccountInfoConfig
Get Account Info Config
GetBalance
Get Balance
GetBlock
Get Block
GetBlockCommitment
Get Block Commitment
GetBlockConfig
Get Block Config
GetBlockHeight
Get Block Height
GetBlockProduction
Get Block Production
GetBlockProductionConfig
Get Block Production Config
GetBlocks
Get Blocks
GetBlocksConfig
Get Blocks Config
GetBlocksWithLimit
Get Blocks With Limit
GetBlockTime
Get Block Time
GetCapabilitiesParams
Get Capabilities Params
GetCapabilitiesResult
Get Capabilities Result
GetClusterNodes
Get Cluster Nodes
GetEpochInfo
Get Epoch Info
GetEpochSchedule
Get Epoch Schedule
GetFeeForMessage
Get Fee For Message
GetFirstAvailableBlock
Get First Available Block
GetGenesisHash
Get Genesis Hash
GetHealth
Get Health
GetHighestSnapshotSlot
Get Highest Snapshot Slot
GetIdentity
Get Identity
GetInflationGovernor
Get Inflation Governor
GetInflationRate
Get Inflation Rate
GetInflationReward
Get Inflation Reward
GetInflationRewardConfig
Get Inflation Reward Config
GetLargestAccounts
Get Largest Accounts
GetLargestAccountsConfig
Get Largest Accounts Config
GetLatestBlockhash
Get Latest Blockhash
GetLeaderSchedule
Get Leader Schedule
GetLeaderScheduleConfig
Get Leader Schedule Config
GetMaxRetransmitSlot
Get Max Retransmit Slot
GetMaxShredInsertSlot
Get Max Shred Insert Slot
GetMinimumBalanceForRentExemption
Get Minimum Balance For Rent Exemption
GetMultipleAccounts
Get Multiple Accounts
GetNonceAccountConfig
Get Nonce Account Config
GetParsedAccountInfoConfig
Get Parsed Account Info Config
GetProgramAccounts
Get Program Accounts
GetProgramAccountsConfig
Get Program Accounts Config
GetRecentPerformanceSamples
Get Recent Performance Samples
GetRecentPrioritizationFees
Get Recent Performance Samples
GetSignaturesForAddress
Get Signatures For Address
GetSignaturesForAddressConfig
Get Signatures For Address Config
GetSignatureStatuses
Get Signature Statuses
GetSignatureStatusesConfig
Get Signature Statuses Config
GetSlot
Get Slot
GetSlotLeader
Get Slot Leader
GetSlotLeaders
Get Slot Leaders
GetStakeActivation
Get Stake Activation
GetStakeActivationConfig
Get Stake Activation Config
GetStakeMinimumDelegation
Get Stake Minimum Delegation
GetSupply
Get Supply
GetSupplyConfig
Get Supply Config
GetTokenAccountBalance
Get Token Account Balance
GetTokenAccountsByDelegate
Get Token Accounts By Delegate
GetTokenAccountsByOwner
Get Token Accounts By Owner
GetTokenLargestAccounts
Get Token Largest Accounts
GetTokenSupply
Get Token Supply
GetTransaction
Get Transaction
GetTransactionConfig
Get Transaction Config
GetTransactionCount
Get Transaction Count
GetVersion
Get Version
GetVoteAccounts
Get Vote Accounts
GetVoteAccountsConfig
Get Vote Accounts Config
HighestSnapshotSlot
Highest Snapshot Slot
Identity
Identity
InflationGovernor
Inflation Governor
InflationRate
Inflation Rate
InflationReward
Inflation Reward
InnerInstruction
Inner Instruction
IsBlockhashValid
Is Blockhash Valid
JsonRpcClientConfig
JSON RPC Client Config
JsonRpcContext
JSON RPC Context
JsonRpcContextMethod<S, T>
JSON RPC Context Method Decoder
JsonRpcErrorResponse<T>
JSON RPC Error Response
JsonRpcExceptionCode
JSON RPC Exception Codes
JsonRpcHttpClient
JSON RPC HTTP Client
JsonRpcMethod<S, T>
JSON RPC Method
JsonRpcMethodBuilder<S, T>
JSON RPC Method Builder
JsonRpcNotification<T>
JSON RPC Notification
JsonRpcNotificationResponse<T>
JSON RPC Notification
JsonRpcRequest
JSON RPC Request
JsonRpcResponse<T>
JSON RPC Response
JsonRpcResponseContext<T>
JSON RPC Response Context
JsonRpcSuccessResponse<T>
JSON RPC Success Response
JsonRpcWebsocketClient<R>
JSON RPC Websocket Client
Keypair
Keypair
LargeAccount
Large Account
LoadedAddress
Loaded Address
LocalAssociation
Local Association
Lockup
Lockup
LockupArgs
Lockup Args
LockupCheckedArgs
Lockup Checked Args
LogsFilter<T extends Object>
Logs Filter
LogsNotification
Logs Notification
LogsSubscribe
Logs Subscribe
MasterEditionAccount
MemCmp
Memory Comparison
MemoProgram
Memo Program
Message
Message
MessageHeader
Message Header
MessageInstruction
Message Instruction
Meta
Meta
MetadataAccount
MetadataCollection
Metadata Collection
MetadataCollectionDetails
Metadata Collection Details
MetadataCollectionDetailsV1
Metadata Collection Details V1 (Enum Variant)
MetadataCreator
Metadata Creator
MetadataUses
Metadata Use
MetaplexTokenMetadataProgram
Metaplex Token Metadata Program
MinimumLedgerSlot
Minimum Ledger Slot
MintAccountInfo
Mint Account Info
NonceAccount
Nonce Account
NonceInformation
Nonce Information
NonceWithMinContextSlot
Nonce with Min Context Slot
PerformanceSample
Performance Sample
PhantomAppInfo
Phantom App Info
PlayStore
Play Store
PrioritizationFee
Prioritization Fee
Program
Program
ProgramAccount
ProgramAccount
ProgramAddress
Program Address
ProgramSubscribe
Program Subscribe
ProgramSubscribeConfig
Program Subscribe Config
Pubkey
Public Key
ReauthorizeParams
Reauthorize Params
RemoteAssociation
Remote Association
RequestAirdrop
Request Airdrop
Reward
Reward
SendAndConfirmTransactionConfig
Send And Confirm Transaction Config
SendTransaction
Send Transaction
SendTransactionConfig
Send Transaction Config
Serializable
Serializable
SignAndSendTransactionsConfig
Sign And Send Transactions Config
SignAndSendTransactionsParams
Sign And Send Transactions Params
SignAndSendTransactionsResult
Sign And Send Transactions Result
SignatureNotification
Signature Notification
SignatureStatus
Signature Status
SignatureSubscribe
Signature Subscribe
Signer
Signer
SignInMessage
Sign In Message
SignMessagesParams
Sign Messages Params
SignMessagesResult
Sign Messages Result
SignTransactionsParams
Sign Transactions Params
SignTransactionsResult
Sign Transactions Result
SimulateTransaction
Simulate Transaction
SimulateTransactionConfig
Simulate Transaction Config
SlotNotification
Slot Notification
SlotRange
Slot Range
SlotSubscribe
Slot Subscribe
SolanaWalletAdapter
Solana Wallet Adapter
SolanaWalletAdapterExceptionCode
Solana Wallet Adapter Exception Codes
SolanaWalletAdapterProtocolExceptionCode
Solana Wallet Adapter Protocol Exception Codes
SolanaWalletAdapterState
Solana Wallet Adapter State
SolanaWalletButton
Solana Wallet Button
SolanaWalletModalBannerTheme
Solana Wallet Modal Banner Theme
SolanaWalletModalBannerThemeData
Solana Wallet Method View Theme Data
SolanaWalletModalCardTheme
Solana Wallet Modal Card Theme
SolanaWalletModalViewTheme
Solana Wallet Modal View Theme
SolanaWalletProvider
Solana Wallet Provider
SolanaWalletProviderState
Solana Wallet Provider State
SolanaWalletQrCodeTheme
Solana Wallet Qr Code Theme
SolanaWalletThemeExtension
Solana Wallet Theme Extension
SolflareAppInfo
Solflare App Info
Stake
Stake
StakeAccount
Stake Account
StakeAccountInfo
Stake Account Info
StakeActivation
Stake Activation
StakeMeta
Meta
StakePool
Stake Pool
StakePoolProgram
Stake Pool Program
StakeProgram
Stake Program
StoreInfo
Store Info
Supply
Supply
SystemProgram
System Program
TokenAccount
Token Account
TokenAccountInfo
Token Account Info
TokenAccountsFilter
Token Accounts Filter
TokenAmount
Token Amount
TokenBalance
Token Balance
TokenProgram
Token Program
Transaction
Transaction
TransactionData<T extends Object>
Transaction Data
TransactionInfo<T extends Object>
Transaction Info
TransactionInstruction
Transaction Instruction
TransactionSerializable
Transaction Serializable
TransactionSerializableConfig
Transaction Serializable Config
TransactionStatus
Transaction Status
UITokenAmount
UI Token Amount
ValidatorList
Validator List
ValidatorListHeader
Validator List Header
ValidatorStakeInfo
Validator Stake Info
Version
Version
VoteAccount
Vote Account
VoteAccountStatus
Vote Account Status
WebsocketSubscription<T>
Websocket Subscription
WebStore
Web Store

Enums

AccountEncoding
Account Encodings
AccountFilter
Account Filter
AccountState
Account State
AccountType
Account Type
AddressLookupTableInstruction
Address Lookup Table Instruction
App
App
AssociatedTokenInstruction
Associated Token Instruction
AssociationType
Association Types
AuthorityType
Authority Type
BufferEncoding
Buffer Encoding
Commitment
Commitments
ComputeBudgetInstruction
Compute Budget Instruction
DismissState
Dismiss State
FundingType
Funding Type
HealthStatus
Health Statuses
MasterEditionKey
Master Edition Account
MemoInstruction
Memo Instruction
MetadataKey
Metadata Account
MetadataUseMethod
Metadata Use Method
MetaplexTokenMetadataInstruction
Metaplex Token Metadata Instruction
PreferredValidatorType
Preferred Validator Type
RewardType
Rewards Types
StakeAccountType
Stake Account Type
StakeAuthorize
Stake Authorize
StakeInstruction
Stake Instruction
StakePoolInstruction
Stake Pool Instruction
StakeState
Stake State
StakeStatus
Stake Status
StakeWithdrawSource
Stake Withdraw Source
SystemInstruction
System Instruction
TokenInstruction
Token Instruction
TokenStandard
TransactionDetail
Transaction Details
TransactionEncoding
Transaction Encodings

Mixins

SerializableMixin
Serializable Mixin
TransactionSerializableMixin
Transaction Serializable Mixin

Extensions

AccountPubKey on Account
Account PubKey
BufferSerializable on BigInt
Big Int Extension
IterableSerializable on Iterable<SerializableMixin>
Iterable Serializable Extension
NumToBigInt on num
Num Extension

Constants

base58 → const Base58CodecBitcoin
Base-58 Codec
base58To64 → const Base58To64Codec
Base-58 to Base-64 Codec
defaultTicksPerSlot → const int
The default number of ticks per slot.
hex → const Base16Codec
Hex (Base-16) Codec
lamportsPerSol → const int
Lamports
millisecondsPerSlot → const double
The duration of a slot in milliseconds.
numberOfSlotsPerSecond → const double
The number of slots per second.
numberOfTicksPerSecond → const int
TODO: These constants should be removed in favor of reading them out of a Syscall account. The number of tick ledger entries per second.

Properties

sysvarClockPubkey Pubkey
Sysvar Public Keys
final
sysvarEpochSchedulePubkey Pubkey
The EpochSchedule sysvar contains epoch scheduling constants that are set in genesis, and enables calculating the number of slots in a given epoch, the epoch for a given slot, etc.
final
sysvarInstructionsPubkey Pubkey
The Instructions sysvar contains the serialized instructions in a Message while that Message is being processed. This allows program instructions to reference other instructions in the same transaction.
final
sysvarRecentBlockhashesPubkey Pubkey
The RecentBlockhashes sysvar contains the active recent blockhashes as well as their associated fee calculators. It is updated every slot. Entries are ordered by descending block height, so the first entry holds the most recent block hash, and the last entry holds an old block hash.
final
sysvarRentPubkey Pubkey
The Rent sysvar contains the rental rate. Currently, the rate is static and set in genesis. The Rent burn percentage is modified by manual feature activation.
final
sysvarRewardsPubkey Pubkey
final
sysvarSlotHashesPubkey Pubkey
The SlotHashes sysvar contains the most recent hashes of the slot's parent banks. It is updated every slot.
final
sysvarSlotHistoryPubkey Pubkey
The SlotHistory sysvar contains a bitvector of slots present over the last epoch. It is updated every slot.
final
sysvarStakeHistoryPubkey Pubkey
The StakeHistory sysvar contains the history of cluster-wide stake activations and de-activations per epoch. It is updated at the start of every epoch.
final

Functions

base58Decode(String encoded) Uint8List
Decodes a base-58 encoded string.
base58Encode(Uint8List input) String
Encodes input to a base-58 string.
base58To64Decode(String base64) String
Converts a base-64 encoded string to base-58.
base58To64Encode(String base58) String
Converts a base-58 encoded string to base-64.
check(bool condition, [Object? message]) → void
checkEq(int value, int limit, [Object? label]) → void
Asserts that value is equal to limit.
checkGt(int value, int limit, [Object? label]) → void
Asserts that value is greater than limit.
checkGte(int value, int limit, [Object? label]) → void
Asserts that value is greater than or equal to limit.
checkLt(int value, int limit, [Object? label]) → void
Asserts that value is less than limit.
checkLte(int value, int limit, [Object? label]) → void
Asserts that value is less than or equal to limit.
checkThrow(bool condition, Object callback()) → void
Asserts that condition is true.
decodeLength(BufferReader reader) int
Shortvec Encoding (Compact-u16 Format)
encodeLength(int length) List<int>
Encodes length into a byte array.
hexDecode(String encoded) Uint8List
Decodes a hexadecimal encoded string.
hexEncode(Uint8List input) String
Encodes input to a hexadecimal string.
lamportsToSol(BigInt lamports) double
Converts lamports to sol.
solToLamports(num sol) BigInt
Converts sol to lamports.

Typedefs

Blockhash = String
Types
bu64 = BigInt
ConfirmTransactionConfig = CommitmentConfig
Confirm Transaction Config
f32 = double
f64 = double
GetBalanceConfig = CommitmentAndMinContextSlotConfig
Get Balance Config
GetBlockHeightConfig = CommitmentAndMinContextSlotConfig
Get Block Height Config
GetBlocksWithLimitConfig = GetBlocksConfig
Get Blocks With Limit Config
GetEpochInfoConfig = CommitmentAndMinContextSlotConfig
Get Epoch Info Config
GetFeeForMessageConfig = CommitmentConfig
Get Fee For Message Config
GetInflationGovernorConfig = CommitmentConfig
Get Inflation Governor Config
GetLatestBlockhashConfig = CommitmentAndMinContextSlotConfig
Get Latest Blockhash Config
GetMinimumBalanceForRentExemptionConfig = CommitmentConfig
Get Minimum Balance For Rent Exemption Config
GetMultipleAccountsConfig = GetAccountInfoConfig
Get Multiple Accounts Config
GetSlotConfig = CommitmentAndMinContextSlotConfig
Get Slot Config
GetSlotLeaderConfig = CommitmentAndMinContextSlotConfig
Get Slot Leader Config
GetStakeMinimumDelegationConfig = CommitmentConfig
Get Stake Minimum Delegation Config
GetTokenAccountBalanceConfig = CommitmentConfig
Get Token Account Balance Config
GetTokenAccountsByDelegateConfig = GetAccountInfoConfig
Get Token Accounts By Delegate Config
GetTokenAccountsByOwnerConfig = GetAccountInfoConfig
Get Token Accounts By Owner Config
GetTokenLargestAccountsConfig = CommitmentConfig
Get Token Largest Accounts Config
GetTokenSupplyConfig = CommitmentConfig
Get Token Supply Config
GetTransactionCountConfig = CommitmentAndMinContextSlotConfig
Get Transaction Count Config
i16 = int
i32 = int
i64 = int
i8 = int
IsBlockhashValidConfig = CommitmentAndMinContextSlotConfig
Is Blockhash Valid Config
isize = int
JsonRpcClientDecoder<T> = Converter<T, FutureOr>
Converts a JSON RPC response of type T to JSON.
JsonRpcClientEncoder = Converter<Object, FutureOr<List<int>>>
Types
JsonRpcContextResponse<T> = JsonRpcSuccessResponse<JsonRpcResponseContext<T>>
Types
JsonRpcResponseDecoder<S, T> = T Function(S input)
Converts a JSON object to type T, where T is a JsonRpcResponse or list of JsonRpcResponses.
JsonRpcSubscribeMethod = JsonRpcMethod<int, int>
Types
JsonRpcSubscribeResponse = JsonRpcSuccessResponse<int>
A JsonRpcSuccessResponse subscribe methods.
JsonRpcUnsubscribeMethod = JsonRpcMethod<bool, bool>
A JsonRpcMethod for unsubscribe methods.
JsonRpcUnsubscribeResponse = JsonRpcSuccessResponse<bool>
A JsonRpcSuccessResponse unsubscribe methods.
JsonRpcWebsocketClientIsPing<R> = bool Function(R data)
The isPing callback handler.
JsonRpcWebsocketClientOnConnect<R> = void Function()
Types
JsonRpcWebsocketClientOnData<R> = void Function(dynamic data)
The onData callback handler.
JsonRpcWebsocketClientOnDisconnect = void Function()
The onDisconnect callback handler.
JsonRpcWebsocketClientOnError = void Function(Object error, [StackTrace? stackTrace])
The onError callback handler.
JsonRpcWebsocketClientOnPing<R> = void Function(R data)
The onPing callback handler.
LeaderSchedule = Map<String, List>
Leader Schedule
LogsSubscribeConfig = CommitmentConfig
Logs Subscribe Config
ReauthorizeResult = AuthorizeResult
Reauthorize Result
RequestAirdropConfig = CommitmentConfig
Request Airdrop Config
SignatureSubscribeConfig = CommitmentConfig
Signature Subscribe Config
SolanaWalletAdapterProtocolException = JsonRpcException
Solana Wallet Adapter Protocol Exception
SubscriptionId = int
TransactionSignature = String
A base-58 encoded transaction signature.
u16 = int
u32 = int
u64 = int
u8 = int
usize = int

Exceptions / Errors

DataSerializableException
Data Serializable Exception
ED25519Exception
ED25519 Exception
JsonRpcException
JSON RPC Exception
KeypairException
Keypair Exception
ProgramException
Program Exception
PubkeyException
Public Key Exception
SolanaException
Solana Exception
SolanaWalletAdapterException
Solana Wallet Adapter Exception
TransactionException
Transaction Exception