capabilities.work

Scan a Program's Owned Accounts

A 3-step recipe with Solana. We can help you get access.

Recipe · 3 steps

Scan a Program's Owned Accounts

with Solana

Confirm a program address and enumerate the accounts it owns.

  1. Read the address and confirm the executable flag is set. Running a program-account scan against a non-program address wastes an expensive call and returns nothing useful.
  2. List every account owned by the program, parsed so the account state is readable without decoding the raw data blob.
  3. Re-read the leading owned accounts in a single batched call, the pattern that keeps an indexer inside its rate limit instead of issuing one request per account.
What you'll need to have ready
  • programId: Base58-encoded public key of the program to scan.
For your developer

Arazzo workflow solana:program-accounts-scan, 3 operations: getAccountInfo → getProgramAccounts → getMultipleAccounts. Specs on APIs.io.