The following lines I am using to try to connect to the binance smart chain yield an invalid URL error. I tried other websocket endpoints (from ANKR) as well and it yielded the same results. I have only connected to Ethereum before so am unsure if there is a separate method/steps. (dependencies are all installed)
let BSCprovider = new Web3.providers.WebsocketProvider("wss://bsc-ws-node.nariox.org:443"); let web3 = new Web3(BSCprovider);
https://stackoverflow.com/questions/67393958/binance-smart-chain-web3-websocket-provider-connection-node-js May 05, 2021 at 09:08AM
没有评论:
发表评论