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.
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.
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.
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
npm install ethers dotenv
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
Never share your private key. Never commit it to git. Consider using a dedicated mining wallet with only the ETH you need for gas.
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
| 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 |
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
Clickstr: 0xf724ede44Bbb2Ccf46cec530c21B14885D441e02
Token: 0x7ddbd0c4a0383a0f9611b715809f92c90e1d991d
Clickstr: 0xf724ede44Bbb2Ccf46cec530c21B14885D441e02
Token: 0x78A607EDE7C7b134F51E725e4bA73D7b269580fc
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