This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// TX 1 - Admin wallet enables trading on FCKIT token https://etherscan.io/tx/0x12b949cf5605bb4da83efd14b6d38ad628a9ebf3befb42141d2ddb8cfc43d53e | |
// TX 2 - Searcher uses a proxy contract to buy ~2B FCKIT --for 60 ETH-- into multiple wallets (and to pay builder for gas fees/rebate) https://etherscan.io/tx/0xc3a37580a96b52a718a5b516dfef209f150e87a75032c725536821ea0d6cc875 | |
// TX 3 - Rebate is forwarded from the flashbots builder back to the user https://etherscan.io/tx/0x80dc2721d833cd221bdf9264f1138a88907f57303bc606f8ee4034297201e095 | |
const { ethers } = require('ethers'); // v5 | |
const rpc = "https://mainnet.infura.io/v3/YOUR_API_KEY_HERE" | |
const provider = new ethers.providers.JsonRpcProvider(rpc) | |
// uni v2 router, to fetch trades using logs | |
const uniPool ="0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D" |