最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

typescript - Meteora DLMM getPositionsByUserAndLbPair returns 401 Gone - Stack Overflow

programmeradmin2浏览0评论

I am using TypeScript to access a Liquidity Pool (LP) on meteora via their DLMM API. When trying to call

const { userPositions } = await dlmmPool.getPositionsByUserAndLbPair(WALLET_KEYPAIR.publicKey); 

I receive the error:

Error managing LP position: Error: 410 Gone: {"jsonrpc":"2.0","error":{"code": 410, "message":"The RPC call or parameters have been disabled"}, "id": "00b330c9-887c-4e99-87a3-5db59098fe45" }

at ClientBrowser.callServer (C:\dev\Cryptos\Meteora\node_modules\@solana\web3.js\src\connection.ts:1699:18)
at processTicksAndRejections (node:internal/process/task_queues:105:5)

Trying to call without parameters works but returns an empty position array even though I have created one position to a DLMM pool using the web interface (on meteora.ag).

I would like to retrieve my existing position to be able to update/remove it. How should I use this API? Thanks

发布评论

评论列表(0)

  1. 暂无评论