Flashbots searcher-minter
This repository contains a very simple demo application of Flashbots, which allows arbitrary submission of a single transaction to Flashbots. This could be used for many simple purposes, but in the demonstration, the goal was to mint an NFT.
Video Live Coding Demo
You can find a walkthrough of Flashbots and the creation of this NFT minting bot here:
YouTube - Using Flashbots to Mint NFTs on Ethereum - Part 1
How to run
Get some Goerli ETH on a wallet (you'll need a faucet). Extract that Goerli wallet's private key (in MetaMask Account Details -> Export Private Key
), use that value below for WALLET_PRIVATE_KEY
.
Note: It is EXTREMELY dangerous to deal with private keys in this manner, but bots require access to these keys to function. Be careful when using raw private keys that own mainnet ETH or other valuable assets. Keep as little value in these "hot" accounts as possible.
npm install
WALLET_PRIVATE_KEY=0x1d9af4................ npx ts-node src/index.ts
Goerli Contract Addresses
- WasteGas:
0x957B500673A4919C9394349E6bbD1A66Dc7E5939
- FakeArtMinter:
0x20EE855E43A7af19E407E39E5110c2C1Ee41F64D
Where can I learn more?
Check out docs.flashbots.net.