Comments (6)
Managed to run this. You need to create .env file in project root and link node url and private key
from defi-arb-bot.
me too,please give more information of install and run
from defi-arb-bot.
sorry can you explain more about the error? never seen that before
from defi-arb-bot.
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. (C:\Users\bip\IdeaProjects\Defi-Arb-Bot\run-arbitrage.js:9:3)
at Module._compile (internal/modules/cjs/loader.js:1201:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1221:10)
at Module.load (internal/modules/cjs/loader.js:1050:32)
at Function.Module._load (internal/modules/cjs/loader.js:938:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47 {
input: 'undefined',
code: 'ERR_INVALID_URL'
}
from defi-arb-bot.
.env file like this:
INFURA_URL="wss://mainnet.infura.io/ws/v3/XXXXXXXXXXXXXXXXXXXXXX"
PRIVATE_KEY="69xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
from defi-arb-bot.
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.
from defi-arb-bot.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from defi-arb-bot.