有做bscscan web3开发的吗?交流下

FC2022 FC2022 提出于 2021-11-15 17:15 4771 浏览

MyContract.getPastEvents 读取历史事件 错误日志: (node:12692) [DEP0018] DeprecationWarning: Unhandled promise rejections are depr ecated. In the future, promise rejections that are not handled will terminate th e Node.js process with a non-zero exit code.

web3.BatchRequest() 批量请求 错误日志: Invalid JSON RPC response: {}

用的官方rpc节点,看来这两个重要的请求都被弃用了,真坑人。eth链的同样请求就正常。 大佬们,有没有别的rpc节点替代方案?顺便求个bscscan开发交流群。

最佳答案

2021-11-16 09:49

可能是节点网络不通。

bsc 文档里有很多节点可以选择, 换一个试试: https://docs.binance.org/smart-chain/developer/rpc.html

Tiny熊

擅长:智能合约,以太坊 · 采纳率 33% · 回答于 2021-11-16 08:51

其它 0 个回答

写回答

你需要登录后才可以回答问题,登录