Closed wepobid closed 3 years ago
me too,please give more information of install and run
sorry can you explain more about the error? never seen that before
internal/url.js:256 throw new ERR_INVALID_URL(input); ^
TypeError [ERR_INVALID_URL]: Invalid URL: undefined
at onParseError (internal/url.js:256:9)
at new URL (internal/url.js:332:5)
at Object.helpers [as parseURL] (C:\Users\bip\IdeaProjects\Defi-Arb-Bot\node_modules\web3-providers-ws\src\helpers.js:14:20)
at new WebsocketProvider (C:\Users\bip\IdeaProjects\Defi-Arb-Bot\node_modules\web3-providers-ws\src\index.js:70:29)
at Object.
Managed to run this. You need to create .env file in project root and link node url and private key
.env file like this:
INFURA_URL="wss://mainnet.infura.io/ws/v3/XXXXXXXXXXXXXXXXXXXXXX" PRIVATE_KEY="69xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
this is correct, you need to make a .env file and get your own infura_url API key. Also, create a new ETH wallet address and extract your private key to store in your .env file just like cnspot mentioned above. Make sure your new wallet address has ETH inside.
internal/url.js:256 throw new ERR_INVALID_URL(input);