Token accounts
getTokenAccountsByOwner
Fetches all token accounts (both Token Program and Token-2022) owned by a pubkey.Solana connection instance
Owner public key
Array of token accounts with mint, amount, decimals, and program info
getSolAndTokenBalances
Fetches SOL balance and all token accounts for a pubkey.Solana connection instance
Owner public key
SOL balance in lamports
SOL balance in SOL (with decimals)
Array of token accounts
Stake accounts
findStakeAccounts
Finds all stake accounts with a specific withdraw authority.Solana connection instance
Withdraw authority to search for
Array of stake account pubkeys, sorted by lamports descending
getStakeAccountsWithStates
Fetches stake accounts with their current state information.Solana connection instance
Withdraw authority to search for
Array of stake accounts with state info
StakeAccountInfo
Stake account address
Stake account balance
Stake state: “undelegated”, “activating”, “active”, “deactivating”, or “inactive”
Validator vote account (undefined if not delegated)
Mint accounts
parseMintAccountInfo
Parses a mint account buffer to extract mint data and token program.Account info buffer from getAccountInfo
Mint public key
Parsed mint account
Token program ID (TOKEN_PROGRAM_ID or TOKEN_2022_PROGRAM_ID)
fetchMintAndTokenProgram
Fetches a single mint account and determines its token program.Solana connection instance
Mint public key
fetchMintsAndTokenPrograms
Fetches multiple mint accounts in a single RPC call.Solana connection instance
Array of mint public keys
Lookup tables
findGlamLookupTables
Finds all Address Lookup Tables (ALTs) associated with a vault.Vault state PDA
Vault PDA
Solana connection instance
Array of lookup table accounts for the vault