Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[broken] this RPC method unavailable for key #2547

Closed
cryptoboole opened this issue Oct 26, 2021 · 6 comments
Closed

[broken] this RPC method unavailable for key #2547

cryptoboole opened this issue Oct 26, 2021 · 6 comments

Comments

@cryptoboole
Copy link

This, and other iterations of it with different wallets:

Finding all token accounts for a wallet

curl http://api.mainnet-beta.solana.com -X POST -H "Content-Type: application/json" -d '
  {
    "jsonrpc": "2.0",
    "id": 1,
    "method": "getProgramAccounts",
    "params": [
      "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
      {
        "encoding": "jsonParsed",
        "filters": [
          {
            "dataSize": 165
          },
          {
            "memcmp": {
              "offset": 32,
              "bytes": "vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg"
            }
          }
        ]
      }
    ]
  }

Results in
{"jsonrpc":"2.0","error":{"code":-32010,"message":"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA excluded from account secondary indexes; this RPC method unavailable for key"},"id":1}

I can't find any notifications of RPC call structure changes. We can't list the tokens that are within the wallet currently.

@cryptoboole
Copy link
Author

It seems that it's only on http://api.mainnet-beta.solana.com RPC that it fails, https://solana-api.projectserum.com works

@t-nelson
Copy link
Contributor

This is a bug introduced in 1.7.16. It will be fixed in 1.7.17. The public MB RPC infrastructure is being downgraded in the meantime

@joncinque
Copy link
Contributor

This should be fixed now, closing

@triviatroy
Copy link

I'm still getting this error on mainnet-beta

@farhan067
Copy link

Did anyone find the solution to this? I am getting this error using web3 sdk.

@joncinque
Copy link
Contributor

This error will appear 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 totally normal operation. Locking this discussion

@solana-labs solana-labs locked as off-topic and limited conversation to collaborators Jun 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants