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

The RPC call or parameters have been disabled #149

Open
jushahulian opened this issue Jan 14, 2025 · 1 comment
Open

The RPC call or parameters have been disabled #149

jushahulian opened this issue Jan 14, 2025 · 1 comment

Comments

@jushahulian
Copy link

const RPC = "https://api.mainnet-beta.solana.com";
Connect to the main network call
await getPositionsState(dlmmPool);
Error: 410 Gone: {"jsonrpc":"2.0","error":{"code": 410, "message":"The RPC call or parameters have been disabled"}, "id": "1b204be4-9aba-4e48-a78f-9919ae305aaf" }

@PhaedoLab
Copy link

I encountered this issue too and figured it out. It seems that the reason of RPC.
this function getPositionsState invokes getProgramAccounts which need very high gas so it's forbidden by Official RPC.
I changed to Alchemy RPC with Growth Plan, It worked.(Not work with free plan, getProgramAccounts is not available on the Free tier )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants