{"id":15830666,"url":"https://github.com/ohmysol/mev-flashbot","last_synced_at":"2025-04-01T11:30:30.006Z","repository":{"id":248186907,"uuid":"824081215","full_name":"ohMySol/mev-flashbot","owner":"ohMySol","description":"A flashbot which is sending transactions directly to the miners and omit the mempool. ","archived":false,"fork":false,"pushed_at":"2024-07-19T21:59:36.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-05T11:41:17.700Z","etag":null,"topics":["bundle","flashbot","frontrunning-attacks","mempool","sandwich-attacks"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ohMySol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-04T10:21:34.000Z","updated_at":"2024-07-19T21:59:39.000Z","dependencies_parsed_at":"2024-10-05T11:40:54.514Z","dependency_job_id":null,"html_url":"https://github.com/ohMySol/mev-flashbot","commit_stats":null,"previous_names":["ohmysol/mev-flashbot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohMySol%2Fmev-flashbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohMySol%2Fmev-flashbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohMySol%2Fmev-flashbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohMySol%2Fmev-flashbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ohMySol","download_url":"https://codeload.github.com/ohMySol/mev-flashbot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246631459,"owners_count":20808681,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bundle","flashbot","frontrunning-attacks","mempool","sandwich-attacks"],"created_at":"2024-10-05T11:40:47.213Z","updated_at":"2025-04-01T11:30:29.974Z","avatar_url":"https://github.com/ohMySol.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flashbot basic project\n\nWith the help of the flashbot code, we can omit the mempool and send tx's directly to the miners.\nIn this way we can make our txs private, and add extra security in the project by omitting sandwich or frontrun attacks. All this is possible because of the private transaction pool of the Flashbots network and how these txs are managed on the way to be included in the block.\nI hope the code will be useful for you.\nFeel free to check more details in the [Flashbots documentation](https://docs.flashbots.net/flashbots-auction/overview)\n\n## Setting Up The Project\n### 1. Clone/Download the Repository:\n`https://github.com/Antony-Holovchenko/flashbot.git`\n\n### 2. Install Dependencies:\n`$ npm install`\n\n### 3. Create .env file and set up all global variables\n\n`INFURA_API_KEY=\"your Infura api key or feel free to use your most preferred provider\"`\\\n`PRIVATE_KEY=your account private key from Sepolia network or any other test network`\\\n`FLASHBOTS_SEPOLIA_URL=feel free to use the needed Flashbots Url`\n\n### 4. Make sure your accounts in the testnet have enough Ether on the balance to run the script\nIf you need test Ether, you can easily request it on [Chainlink Faucet](https://faucets.chain.link/)\n\n### 5. Change the target account in the transaction description\nIn the `signedTransactions` change the `to` value to your account in both txs:\n```\n    {\n        signer: signer,\n        transaction: {\n          to: \"paste here your account address\",\n          ...\n        } \n    }\n```\n\n\n## Running The Project\n### 1. Execute the command below:\nOnce all preconditions are done, you can run the script with `node flashbot.js`\n\n### 2. Check the console:\nIn the console you should see that the simulation passed successfully.\nAnd after this you will see information about successfull txs bundle \nsubmission to the the Flashbots network and inclusion in the block.\\\nExample below:\n\n`Simulation successfully completed in block number: \u003csome block number\u003e`\\\n`Bundle was successfully submitted, processing ...`\\\n`Wait response: BundleIncluded`\\\n`Bundle successfully included in block!`\n\n## Checking the results\n### 1. Verify your metamask account balance:\nBalance in the 1st account, from which you initiate a tx should be decreased\nfor the amount from 2 txs in the `signedTransactions` object. In my example \nthis amount is 0.002 ETH. And in the 2nd account the balance should be increased  \nfor the amount from 2 txs.\\\nIf you see this result, then congratulations. The flashbot is working as expected,\nand you successfully sent tx directly to the miner omitting the public mempool.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fohmysol%2Fmev-flashbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fohmysol%2Fmev-flashbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fohmysol%2Fmev-flashbot/lists"}