💡We also have a python version of the bot Here 🐍
The objective is simple, you compete as a searcher to be first to land a transaction on-chain in each new block. Your ranking is determined by your win/loss ratio weighted by number of attempts.
First, you'll need to install Go on your computer:
- Download the installer from Go's official website
- Run the installer and follow the prompts
- Open Command Prompt and verify installation:
go version
Using Homebrew:
brew install go
sudo apt update
sudo apt install golang
- Create a
.env
file in the project root directory - Generate a private key (if you don't have one):
# Using OpenSSL (recommended) openssl rand -hex 32 # Alternative: Using Python python3 -c "import secrets; print(secrets.token_hex(32))"
- To get your Ethereum address from the private key, use Python:
# Install web3 if you haven't already pip install web3 # Run this Python command (replace YOUR_PRIVATE_KEY with the key generated above) python3 -c "from web3 import Web3; w3 = Web3(); private_key = 'YOUR_PRIVATE_KEY'; account = w3.eth.account.from_key('0x' + private_key); print(f'Private key: {private_key}'); print(f'Public address: {account.address}')"
- Add your configuration:
PRIVATE_KEY=your_private_key_here
RPC_URL=your_rpc_url_here
- Never share your private key or commit it to version control!
- Store your private key securely and keep a backup
make run-bot
# or
go run cmd/bot/main.go
make scores
# or
go run cmd/scores/main.go
If you encounter any issues:
- Make sure Go is properly installed:
go version
- Verify your
.env
file exists and contains valid credentials - Ensure all dependencies are installed:
go mod tidy
- Ask for help in the FastLane on Monad Discord (#frontunner channel)
- Talk to ChatGPT
- Create an issue in this repository
- Make sure your Go environment variables are set correctly:
go env
MIT