BOT MINING GUIDE
IMPORTANT

Bot/script mining earns $CLICK tokens, but does NOT count toward NFT rewards, achievements, or milestones. Only clicks through the frontend earn NFTs and collectibles.

What is Bot Mining?

Clickstr uses proof-of-work (PoW) for every click. This means you can mine $CLICK tokens by running a script that computes valid hashes and submits them directly to the smart contract, bypassing the frontend entirely.

Scripts are explicitly allowed - they still do real computational work and pay gas fees. The difficulty adjusts based on total clicks, so more mining makes it harder for everyone.

WHY ALLOW BOTS?

The 50/50 burn mechanism + gas costs create natural rate limiting. Mindless botting is expensive, and humans remain competitive because their marginal cost is near zero. The best strategy: batch clicks and submit during low gas periods.

Quick Start

1. Prerequisites

2. Download the Miner

Download the public miner script from GitHub:

curl -O https://raw.githubusercontent.com/songadaymann/clickstr/main/scripts/public-miner.js

Or clone the entire repo:

git clone https://github.com/songadaymann/clickstr.git
cd clickstr/scripts

3. Install Dependencies

npm install ethers dotenv

4. Configure Your Wallet

Create a .env file in the same directory as the script:

# Required: Your wallet private key
PRIVATE_KEY=0xYourPrivateKeyHere

# Optional: Custom settings
NETWORK=sepolia
BATCH_SIZE=500
NUM_WORKERS=8
SECURITY

Never share your private key. Never commit it to git. Consider using a dedicated mining wallet with only the ETH you need for gas.

5. Run the Miner

node public-miner.js

You should see output like:

+===============================================================+
|                  CLICKSTR PUBLIC MINER                        |
+===============================================================+
|  Network: sepolia  | Batch: 500 | Workers: 8                  |
+===============================================================+
|  NOTE: Script clicks earn $CLICK but NOT NFT rewards.         |
|        Use clickstr.fun for NFTs and collectibles!            |
+===============================================================+

Wallet: 0xYour...Address
Contract: 0x6dD800B88FEecbE7DaBb109884298590E5BbBf20

Mining 500 nonces with 8 threads...
   Mined 500 nonces in 2.34s
   Hash rate: 15,234 H/s (8 threads)

Submitting 500 nonces...
   TX: https://sepolia.etherscan.io/tx/0x...
   500 clicks | +125.5 CLICK | 125.5 burned

Configuration Options

Variable Required Default Description
PRIVATE_KEY Yes - Your wallet's private key (with 0x prefix)
NETWORK No sepolia Network to use: "sepolia" or "mainnet"
RPC_URL No Public RPC Custom RPC endpoint for better reliability
BATCH_SIZE No 500 Proofs per transaction (50-500)
NUM_WORKERS No All CPUs Number of CPU threads for mining

How It Works

The Mining Process

  1. 1. The script fetches the current game state (epoch, difficulty)
  2. 2. Worker threads mine nonces by computing keccak256 hashes
  3. 3. Valid nonces (hash < difficulty target) are collected
  4. 4. Once enough nonces are found, they're submitted to the contract
  5. 5. The contract verifies each proof and distributes tokens
  6. 6. 50% goes to you, 50% is burned forever

Hash Formula

hash = keccak256(abi.encodePacked(
  userAddress,  // Your wallet
  nonce,        // Random number you're searching for
  epoch,        // Current game epoch
  chainId       // Network (1 for mainnet, 11155111 for sepolia)
))

// Valid if:
uint256(hash) < difficultyTarget

Tips for Better Mining

Contract Addresses

Mainnet (Current)

Clickstr: 0xf724ede44Bbb2Ccf46cec530c21B14885D441e02
Token:    0x7ddbd0c4a0383a0f9611b715809f92c90e1d991d

Sepolia Testnet

Clickstr: 0xf724ede44Bbb2Ccf46cec530c21B14885D441e02
Token:    0x78A607EDE7C7b134F51E725e4bA73D7b269580fc

Custom Scripts

Want to write your own miner? The contract is permissionless - anyone can call submitClicks(uint256[] calldata nonces) with valid proofs.

Key requirements:

See the contract source and miner source for implementation details.

← Back to Game