I am using connection.getTokenLargestAccounts(new PublicKey(tokenAddress));
method to fetch the owners of a token. Calling this function like below, on an array of NFT address on mainnet-beta via Quicknode RPC endpoint.
const largestAcc = await connection.getTokenLargestAccounts(tokenAddress);
On doing above, I am running into this error:
"failed to get token largest accounts: TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA excluded from account secondary indexes; this RPC method unavailable for key"
I am not calling getLargetstTokenAccount for TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA
, but still getting the above error. Can anyone explain the root cause of this error, and how can it be fixed?