You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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" }
The text was updated successfully, but these errors were encountered:
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 )
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" }
The text was updated successfully, but these errors were encountered: