RPC Nodes - Solana and method getProgramAccounts

Modified on Mon, 30 Jan 2023 at 12:19 PM

When making a complex call to a Solana RPC Node with the method getProgramAccounts, you may get 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
}


From Solana Github

This error appears if a program is excluded from the secondary indices. [Tokenkeg...] with lots of accounts can be excluded from [getProgramAccounts] by RPC nodes as a consequence.

 

Additional 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
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article