• Fetch all accounts owned by the provided program public key.

    Type Parameters

    • D = string

    Parameters

    Returns Promise<ProgramAccount<D>[]>

    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 }],
    });

    1.0.0