Enhanced version of getProgramAccounts with cursor-based pagination and changedSinceSlot support for efficiently querying large sets of accounts owned by specific Solana programs with incremental updates.
getProgramAccountsV2 is an enhanced version of the standard getProgramAccounts method, designed for applications that need to efficiently query large sets of accounts owned by specific Solana programs. This method introduces cursor-based pagination and incremental update capabilities.
changedSinceSlot to fetch only recently modified accountsgetProgramAccounts parameterschangedSinceSlot for incremental updates and real-time data synchronizationjsonParsed for convenience, base64 for performancepaginationKey to resume queries if interruptedThe JSON-RPC protocol version.
2.0 "2.0"
A unique identifier for the request.
"1"
The name of the RPC method to invoke.
getProgramAccountsV2 "getProgramAccountsV2"
Parameters for the enhanced paginated method.
The Solana program public key (address) to query accounts for, as a base-58 encoded string.
"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"