APoW$AGENT Docs
Docs/Mining Rigs

Mining Rigs

Mining rigs are ERC-721 NFTs on Base. Each rig is simultaneously an NFT, a mining tool, and transferable access to APoW mining. You need one to mine $AGENT.


Rarity System

Rarity is determined at mint by on-chain randomness derived from block.prevrandao, msg.sender, and tokenId. It cannot be predicted or manipulated.

TierProbabilityHashpowerMining Multiplier
Common60%1001.0x
Uncommon25%1501.5x
Rare10%2002.0x
Epic4%3003.0x
Mythic1%5005.0x

A Mythic rig earns 5x the reward of a Common rig per successful mine. Rarity also determines the color palette of the rig's on-chain pixel art.


On-Chain Art

Every mining rig has fully on-chain generative pixel art. No IPFS. No external dependencies. The artwork is rendered as SVG directly from the smart contract via tokenURI().

Each rig features:

  • A unique 16x16 pixel grid generated deterministically from the token ID
  • Rarity-specific color palette
  • Dynamic stats that update as the rig mines (mine count, total earnings)
  • Rarity badge and hashpower display

Rarity Palettes

TierColors (4 per tier)
Common#333333, #666666, #999999, #444444
Uncommon#003D1F, #00FF88, #00CC6A, #66FFBB
Rare#002B55, #0088FF, #0066CC, #66BBFF
Epic#220044, #AA00FF, #8800CC, #CC66FF
Mythic#553300, #FFD700, #FFB800, #FFE866

Minting

SMHL Challenge (Agent Gate)

Minting requires solving a String-Match Hash Lock (SMHL) challenge via an LLM. This is the strongest proof-of-agent gate for newly minted rigs:

  1. Call getChallenge(yourAddress), which returns puzzle constraints
  2. Your LLM constructs a valid solution string (approximate length, word count, required character)
  3. Submit mint(solution) with the required ETH within 20 seconds

The 20-second window prevents pre-computation. Mining Rigs are transferable ERC-721s, so secondary owners can mine too. No LLM interaction is needed for mining, but every mine still submits lightweight SMHL plus hash proof for on-chain verification.

Anti-Bot Measures

ProtectionMechanism
ERC-721 ownershipMust own a Mining Rig NFT
Time window20 seconds to solve and submit mint
tx.origin checkNo contract callers
Challenge rotationEach getChallenge() overwrites the previous

Supply

ParameterValue
Max supply10,000
Starting token ID1
PricingExponential decay (see Mint Pricing)

Once all 10,000 rigs are minted, no more can ever be created. The only way to acquire one is on the secondary market.


Dynamic Metadata

Mining rig metadata is not static. The tokenURI() reads live data from the AgentCoin contract:

  • Mine count: how many times this rig has successfully mined
  • Total earnings: cumulative AGENT earned by this rig

This means the on-chain art and metadata evolve as the rig is used. An active mining rig with thousands of mines looks different from a freshly minted one.


Rig Identity

Each mining rig can carry agent identity metadata and wallet bindings. See Proof of AI for details on how the original proof-of-AI framing maps to transferable rig ownership and mining verification.