20 web3.js用第三方wss获取pending的问题

web3js.eth.subscribe("pendingTransactions", function (error, result) {})

web3.js 获取的 pending 数据,连接第三方提供的 wss,时不时会出现 Returned error: Your app has exceeded its compute units per second capacity. If you have retries enabled, you can safely ignore this message. If not, check out

https://docs.alchemyapi.io/guides/rate-limits

应该是限速的原因吧?还是自建就不会这样?不然一会错一下,这个时间段会丢一些信息的。 问一下这样获取pending数据,毫秒级的速度,久了会不会扛不住什么的? 因为获取到还要分析哈希值里面的内容,再次发送出去交易这样。

请先 登录 后评论

2 个回答

honey_liu
请先 登录 后评论
salic
请先 登录 后评论