Connection.get Programaccounts禁用了Solana上某些群集的禁用?
RPC调用,connect.getProgramaccounts()
似乎正在为我的本地验证器和本地部署的程序工作,但是当我尝试获取血清DEX V3的程序时,它显示了以下错误9XQEWVG816BUX9EPJHMAT23YVVM2ZWBRRPZB9PUSVFIN
。
error: {code: 410, message: "The RPC call or parameters have been disabled."}
code: 410
message: "The RPC call or parameters have been disabled."
id: "f4ea7d5f-5ff4-4707-a88d-94231f7c1698"
jsonrpc: "2.0"
我是做错了什么,还是这种预期的行为?
The RPC call, connection.getProgramAccounts()
seems to be working for my local validator and a locally deployed program, but it shows the following error when I'm trying to fetch program accounts for Serum Dex V3, 9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin
.
error: {code: 410, message: "The RPC call or parameters have been disabled."}
code: 410
message: "The RPC call or parameters have been disabled."
id: "f4ea7d5f-5ff4-4707-a88d-94231f7c1698"
jsonrpc: "2.0"
Am I doing something wrong, or is this expected behaviour?s
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不幸的是,这是正常行为。由于需要发送的大量帐户,RPC节点通常限制
getProgramaccounts
的使用,或者整个节点都可以落后。您有一些选择:getProgramaccounts
使用间歇泉插件从单独的数据库中获取帐户: https://docs.solana.com/developing/plugins/plugins/geyser-plugins-plugins-plugins#overviewThis is unfortunately normal behavior. Because of the large number of accounts that need to be sent back, RPC nodes typically restrict the use of
getProgramAccounts
, or the whole node can fall behind. You have a few options:getProgramAccounts
on this program