Comments (6)
The best approach is to fork mainnet with ganache-cli like this:
ganache-cli -p 7545 --fork mainnet
Then make sure that in truffle-config.js your "development" network is configured to connect to localhost:7545
from defi-bot.
https://extropy-io.medium.com/arbitrage-bot-part-2-97e7b710dcf
Don't trade on main St until you understand what you are doing! Errors are costly. Comment out the contract call inside index.js or the best way for testing is to simulate using contracts on a testnet
from defi-bot.
Thank you kindly
from defi-bot.
@codemedici can you tell me what are the steps for using testnets? do i need to edit the smart contract (replace with testnet addresses) Right?
from defi-bot.
I am also interested in this. I am also trying to query 0x APIs on Ropsten without much success
from defi-bot.
@cosimo-de-medici i already have the ganache gui installed. also added the "development" options in truffle. Do you think its the same?
from defi-bot.
Related Issues (20)
- Cannot find module 'dotenv' when executing
- TradingBot hit a require or revert statement somewhere in its constructor. HOT 12
- Cannot read property of 'address' of undefined HOT 8
- Can we deploy Tradingbot.sol on BSC or Polygon to save gas fee ? HOT 3
- UnimplementedFeatureError: HOT 1
- Problem in returning the loan HOT 1
- ts(1005) Error HOT 1
- [DEP0005] & [ERR_IPC_CHANNEL_CLOSED]
- I am getting this error when running: SyntaxError: Unexpected identifier HOT 17
- [Solved]: Error: Invalid JSON RPC response: "" HOT 2
- Trouble deploying TradingBot.sol HOT 3
- Hmm... This code looks awfully familiar where did you get it? HOT 1
- Hi HOT 3
- I got the gas estimation error when I deployed the trading bot contract. HOT 1
- Some help plz, have 2 issues HOT 2
- "Go to Remix online IDE and paste the smart contract solidity code", what exactly should I paste and in which file among other files in remix ide HOT 1
- Testnet Support HOT 1
- Error when deploying: "TradingBot" hit a require or revert statement somewhere in its constructor HOT 1
- Insufficient Funds Error HOT 7
- Got this error when trying to run. HOT 3
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-bot.