我使用solana-go https://github.com/gagliardetto/solana-go,当我同时请求SendAndConfirmTransaction 100次时,将报告错误。
_, err = confirm.SendAndConfirmTransaction(
context.TODO(),
this.getRpcClient(),
this.wsClient,
tx,
)
if err != nil {
panic(err)
}
和错误:
panic: (*jsonrpc.RPCError)(0x140001a1800)({
Code: (int) 429,
Message: (string) (len=83) "Connection rate limits exceeded, contact your app developer or support@rpcpool.com.",
Data: (interface {}) <nil>
})
超过连接速率限制,请与应用程序开发人员或support@rpcpool.com.联系
当我减少到50并发,没有问题,但我不能再问50次,否则我会报告一个错误。
我想知道,solana rpc和websocket的限制是什么?以及是否有任何增加并发性的方法。
发布于 2022-11-18 11:46:25
如果您使用Solana Labs (即开发网、测试网、主板网),以下是限制:https://docs.solana.com/cluster/rpc-endpoints
如果您要托管或使用另一个RPC提供程序,则它们的速率可能会有所不同,并允许(可能要付出一定的代价)更高的速率。
https://stackoverflow.com/questions/74472618
复制相似问题