Fetch all accounts owned by the provided program public key.
HTTP transport instance
Base-58 encoded program public key
Encoding, filters, commitment, and call options
Array of program-owned accounts
This can be a heavy call — use filters and data slices to reduce response size.
const accounts = await getProgramAccounts(transport, programId, { filters: [{ dataSize: 165 }],}); Copy
const accounts = await getProgramAccounts(transport, programId, { filters: [{ dataSize: 165 }],});
1.0.0
Fetch all accounts owned by the provided program public key.