Skip to content

buzzkillb/bitsbot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BitsBot

BitsBot is a node.js app with solidity smart contracts that continuosly fetches crypto prices on exchanges looking for arbitrage opportunities, trying to guarantee that the trade is possible before even attempting to execute it.

Project Structure

index.js : It's the starting point of node.js app to looking for arbitrage opportunities and execute a trade.

BitsBot.sol : In the contracts folder BitsBot.sol a smart contract gets called by the node app only when a profitable arbitrage is found

Setup

Deploy BitsBot.sol with an initial 100 wei and get an address

Environment Setup

Create .env file and fill the below details

RPC_URL="https://mainnet.infura.io/v3/YOUR_API_KEY_HERE"
ADDRESS="0x..."
PRIVATE_KEY="0x..."
CONTRACT_ADDRESS="0x..."
GAS_LIMIT=3000000
GAS_PRICE=200
ESTIMATED_GAS=1700000

Run

Run node app by this command => node index.js

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 50.7%
  • Solidity 49.3%