getProgramAccounts

Returns all accounts owned by the provided program Pubkey.

POST Category: account

Developer Guide

getProgramAccounts Solana Developer Guide — Learn how to fetch every account owned by a Solana program with getProgramAccounts — dataSize and memcmp filters, reading a program IDL to find byte offsets, and cutting a 10 GB scan down to a few kilobytes with changedSinceSlot and dataSlice.

← Back to all methods