solwave_dart library
Classes
- AccountMeta
- Class that wraps addresses with information necessary for solana transactions to be encoded correctly.
- AddressLookupTableAccount
- AddressLookupTableState
- AssociatedTokenAccountInstruction
- AssociatedTokenAccountProgram
- AuthorizeWithSeedArgs
- BBool
- BNonceAccount
- BPublicKey
- ByteArray
- CompiledInstruction
- CompiledMessage
- CompiledMessageLegacy
- CompiledMessageV0
- ComputeBudgetInstruction
- ComputeBudgetProgram
- ConnectedWallets
- Ed25519HDKeyPair
- Signs solana transactions using the ed25519 elliptic curve
- Ed25519HDKeyPairData
- Ed25519HDPublicKey
- GetAccountInfoConfig
- GetBalanceConfig
- GetBlockConfig
- GetBlockHeightConfig
- GetBlockProductionConfig
- GetBlocksConfig
- GetBlocksWithLimitConfig
- GetConfirmedBlockConfig
- GetConfirmedSignaturesForAddress2Config
- GetConfirmedTransactionConfig
- GetEpochInfoConfig
- GetFeeCalculatorForBlockhashConfig
- GetFeeForMessageConfig
- GetFeesConfig
- GetInflationGovernorConfig
- GetInflationRewardConfig
- GetLargestAccountsConfig
- GetLatestBlockhashConfig
- GetLeaderScheduleConfig
- GetMinimumBalanceForRentExemptionConfig
- GetMultipleAccountsConfig
- GetProgramAccountsConfig
- GetRecentBlockhashConfig
- GetSignaturesForAddressConfig
- GetSignatureStatusesConfig
- GetSlotConfig
- GetSlotLeaderConfig
- GetStakeActivationConfig
- GetStakeMinimumDelegationConfig
- GetSupplyConfig
- GetTokenAccountBalanceConfig
- GetTokenAccountsByDelegateConfig
- GetTokenAccountsByOwnerConfig
- GetTokenLargestAccountsConfig
- GetTokenSupplyConfig
- GetTransactionConfig
- GetTransactionCountConfig
- GetVoteAccountsConfig
- Instruction
- Taken from here.
- IsBlockhashValidConfig
- JsonRpcErrorCode
- LoadedAddresses
- LockupCheckedArgs
- MemoInstruction
- The memo instruction for the memo program.
- MemoProgram
- The memo program from the SPL.
- Message
- This is an implementation of the Message Format.
- MessageAddressTableLookup
- Mint
- Information about a mint.
- NonceAccount
- OptionalError
- RequestAirdropConfig
- RpcClient
- SendTransactionConfig
- Signature
-
A digital signature by some
SignatureAlgorithm
. - SignedTx
- Represents a signed transaction that consists of the transaction message and an array of signatures. The array of signatures must be populated following the solana convention for the set of addresses that they belong to within the message.
- SimulateTransactionConfig
- SolanaClient
- SolanaTransaction
- Solwave
- SolwaveTransaction
- SolwaveTransactionStringify
- StakeAuthorize
- StakeInstruction
- StakeProgram
- StakerAuthority
- SubscriptionClient
- Provides a websocket based connection to Solana.
- SystemInstruction
- Create new accounts, allocate account data, assign accounts to owning programs, transfer lamports from System Program owned accounts and pay transaction fees.
- SystemProgram
- Sysvar
- TokenInstruction
- A spl token program instruction.
- TokenProgram
- Construct token programs conveniently
- TransactionPayload
- TransactionPayloadStringify
- WalletEntity
- WalletProviderEntity
- WithdrawerAuthority
Enums
Extensions
- AccountMetaJson on AccountMeta
-
AccountMetaListExt
on List<
AccountMeta> - BinaryReaderExt on BinaryReader
- InstructionJson on Instruction
-
InstructionListExt
on List<
Instruction> - RpcClientExt on RpcClient
- SignatureExt on Signature
- SolanaClientAssociatedTokenAccontProgram on SolanaClient
- SolanaClientSystemProgram on SolanaClient
- SolanaClientTokenProgram on SolanaClient
- SubscriptionClientExt on SubscriptionClient
Constants
- lamportsPerSol → const int
- maxMessageLength → const int
- solDecimalPlaces → const int
Functions
-
addressBytes(
String pubKey) → List< int> -
bytesToInt(
List< int> bytes, int startIndex, {Endian endian = Endian.little}) → int -
checkForSignatureStatuses(
List< String> signatures, Repository repo) → Future<bool> -
findAssociatedTokenAddress(
{required Ed25519HDPublicKey owner, required Ed25519HDPublicKey mint}) → Future< Ed25519HDPublicKey> -
Compute and derive the associated token address of
owner
. -
ignoreOnSigned(
TransactionId _) → void -
intToBytes(
int data, {Endian endian = Endian.little}) → List< int> -
isPointOnEd25519Curve(
Iterable< int> data) → bool -
isValidAddress(
String address) → bool -
Returns true if
address
is a valid ed25519 point encoded to base58. -
lamportsToSol(
int lamports) → double -
launchURL(
String url) → void -
replaceBackslashes(
String input) → String -
signTransaction(
RecentBlockhash recentBlockhash, Message message, List< Ed25519HDKeyPair> signers) → Future<SignedTx> -
signV0Transaction(
RecentBlockhash recentBlockhash, Message message, List< Ed25519HDKeyPair> signers, {List<AddressLookupTableAccount> addressLookupTableAccounts = const []}) → Future<SignedTx> -
toBase58Address(
List< int> bytes) → String -
verifySignature(
{required List< int> message, required List<int> signature, required Ed25519HDPublicKey publicKey}) → Future<bool> -
verifySolwaveSignature(
Uint8List signature, Uint8List messageBytes, Uint8List publicKey) → bool
Typedefs
- Epoch = int
-
SignatureCallback
= FutureOr<
void> Function(TransactionId transactionId) - TransactionId = String
- The first signature in a transaction, which can be used to uniquely identify the transaction across the complete ledger.
- UnixTimestamp = int
- Wallet = Ed25519HDKeyPair