我正在尝试使用web3.js使用Infuria api密钥连接到以太坊区块链 但我无法连接并出现以下错误。
我尝试使用以下资源研究此问题:-'https://github.com/ethereum/wiki/wiki/JavaScript-API'&'https://web3js.readthedocs.io/en/1.0/'资源。
代码:-
var Web3 = require('web3');
var web3 =新的Web3('mainnet.infura.io/v3/ [my_infuria_api_key]');
错误:注入了无效的提供者!