这是indexloc提供的服务,不要输入任何密码
Skip to content

Lisuhan/sandwich

 
 

Repository files navigation

Sandwich Bot Demo

Monitors mempool for Uniswap V2 and V3(Multicall) buy transactions, performs sandwich on profitable transactions using Flashbots.

Setup

  • Add PRIVATE_KEY, GOERLI_WSS_URL variables in .env file
  • Fill variables in src/trade_variables.js file

Deploy Contracts

  • Add ETHERSCAN_API_KEY in .env file
  •  $ npx hardhat run scripts/deploy.js --network goerli
     $ npx hardhat verify --network goerli <Contract address> <WETH address> 
    
  • Send ETH to sandwich contract to wrap to WETH

About

Sandwich Bot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 58.5%
  • Solidity 41.5%