Represents a store for Solana accounts.
The Solana connection object to use for interacting with the Solana network.
Private
__accountsPrivate
__connectionAdds a new Solana account to the store.
add
Rest
...args: [sk: Uint8Array] | [mnemonic: string]Creates a new Solana account and adds it to the store.
createNew
Creates a new Solana account with a prefix and adds it to the store.
createNewWithPrefix
The prefix to use for generating the account address.
Optional
tries: number = 10000The maximum number of tries to generate a unique account address with the given prefix (optional, defaults to 10000).
Retrieves a Solana account from the store based on the account address.
get
The account address for which to retrieve the Solana account.
Retrieves the SOL (Solana) token balance for a given account address.
getSOLBalance
The account address for which to retrieve the SOL balance.
Optional
connection: ConnectionThe Solana connection object to use for retrieving the balance (optional, defaults to the class's connection).
Retrieves the SPL token balance for a given owner's account.
getSPLTokenBalance
The owner's address for which to retrieve the SPL token balance.
The configuration for the SPL token.
The Solana connection object to use for retrieving the balance.
Requests an airdrop of SOL tokens to a given account.
requestAirDrop
The Solana account requesting the airdrop.
Optional
amount: number = 1_000_000_000The amount of SOL tokens to request for the airdrop (optional, defaults to 1,000,000,000).
The Solana connection object to use for requesting the airdrop.
Generated using TypeDoc
Represents a store for Solana accounts.