RPC Node - Solana and method getProgramAccounts

Modified on Thu, 29 Sep 2022 at 03:49 PM

When making a call to a Solana RPC Node with the method "getProgramAccounts", this call redirects to Quick Node.


The reason is that standard API calls using Solana RPC Nodes with the method getProgramAccounts return an error looking as follows:


{"jsonrpc":"2.0","error":{"code":-32010,"message":"Tokenkeg####### excluded from account secondary indexes; this RPC method unavailable for key"},"id":1}%
Complex operations may still result in timeouts.

From Solana Github

This error appears if a program is excluded from the secondary indices. [Tokenkeg...] has so many accounts that it is almost always excluded from [getProgramAccounts] by RPC nodes, so this is part of a totally normal operation.

 

More information is available at the following link.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article