0

I requesting staked accounts with this request

return (
      await this.connectionService
        .getBalanceConnection()
        .getProgramAccounts(STAKE_PROGRAM_ID, filters: [
        {
          dataSize: 200, // number of bytes
        },
        {
          memcmp: {
            offset: 44, // number of bytes
            bytes: walletAddress, // base58 encoded string
          },
        },
      ],)

And now I receive Internal Servier Error, but sometimes before all works. Maybe exists other way to request staking accounts? Or maybe something I am doing wrong.

Error:

Error: 500 Internal Server Error: {"jsonrpc":"2.0","id":"12f9dbff-aaae-428e-444-ab5ff56854c9","error":{"code":-32603,"message":"Internal server error"}}

1 Answer 1

0

Most RPC providers restrict calling getProgramAccounts, so likely the RPC node is throttling you. If you're using this call often and running into issues, you may need to get your own node.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.