Skip to content

mouseless0x/4444

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Uniswap V4 Vanity Miner

This repo contains three components to mine for the Uniswap V4 address:

  • Modified version of create2crunch
  • Server instance to collect logs and forward salts to tg
  • Script to bid on vastai instances

Info: This exact setup has been used to mine these addresses in just 12 hours each:

  • 0x0000000000000039cd5e8ae05257ce51c473ddd1 (paymaster v0.6)
  • 0x00000000000000fb866daaa79352cc568a005d96 (paymaster v0.7)

Running

Log Aggregator

This service will collect logs from all your vastai boxes. It will only forward the highest salt to tg.

Usage

  1. Setup a tg bot using botfather + tg channel

  2. Host server using railway

cd log-aggregator
railway init
railway up

You will need to supply the env vars BOT_TOKEN and CHANNEL_ID on your railway dashboard (how to get your CHANNEL_ID)

Modified create2crunch

Modified create2crunch that scores addresses based on Uniswap's challenge criteria. I one shotted a prompt, it looked good, and is most likely not the optimal approach.

Usage

Creating template on vastai

Head to cloud.vast.ai/templates/edit. You can use the docker image mousless/fourfourfourfour to skip building it yourself.

Fill in the on-startup Script section with the following

for i in $(seq 0 $(($(clinfo | awk '/Platform Name/ {pname=$3} /Number of devices/ {if (pname ~ /NVIDIA/) {print $4}}') - 1))); do
  nohup /home/target/release/fourfourfourfour \
  0x48E516B34A1274f49457b9C6182097796D0498Cb \
  0x0000000000000000000000000000000000000000 \
  0x94d114296a5af85c1fd2dc039cdaa32f1ed4b0fe0868f02d888bfc91feb645d9 \
  $i \
  $YOUR_RAILWAY_ENDPOINT_URL_HERE \
  > "log_$i.txt" 2>&1 &
done

Note: the zero address is being used in the salt meaning there is no frontrunning protection

Note: replace $YOUR_RAILWAY_ENDPOINT_URL_HERE with your log-aggregator's endpoint

GPU Bidder

vastai offers interruptible boxes at a much lower price compared to renting. This is a simple script to periodically place bids on RTX 4090s (up to $0.2/h).

Usage

cd bidder
railway init
railway up

You will need to supply the env vars VAST_API_KEY and VAST_TEMPLATE_HASH on your railway dashboard.

About

Uniswap V4 Vanity Miner

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published