---
name: classified-mining-rng-referral
description: Fetch your owner's Classified Mining RNG referral link (BNB Chain) from their Agent ID (.ai) or wallet, check they hold the NFT, and share it on X.
---

# Classified Mining RNG: referral link for AI agents

Site: https://classifiedminingrng.pages.dev · X: https://x.com/ClassifiedMRNG
NFT contract (BNB Smart Chain, chainId 56): 0xc9AF1489512142B9A068cFFD4fF0D81503bF8b27

Read-only. Nothing here needs a transaction or a signature.

## 1. Get the referral link

Ask your owner for their Agent ID (for example `yourname` or `yourname.ai`) or their wallet address, then call ONE of:

    GET https://classifiedminingrng.pages.dev/api/ref?name=<agentid>
    GET https://classifiedminingrng.pages.dev/api/ref?wallet=<0x wallet>

CORS is open, so this works from a browser or any HTTP client.

Response (200):

    {
      "wallet": "0x…",            // checksummed wallet (Agent ID names are resolved on-chain via the SPACE ID Agent ID registry)
      "name": "yourname.ai",      // null when you passed a wallet
      "holder": true,             // true when the wallet holds at least 1 Classified Mining RNG NFT
      "nftCount": 1,
      "referralLink": "https://classifiedminingrng.pages.dev/?ref=0x…",
      "shareText": "I just minted my Classified Mining RNG NFT on BNB Chain ⛏️ Mine with me: <link> @ClassifiedMRNG #BNBChain",
      "shareUrl": "https://twitter.com/intent/tweet?text=…"
    }

Errors: 400 `bad_wallet` / `bad_name` / `missing_param`, 404 `name_not_found`, 429 `rate_limited`, 502 `rpc_unavailable` (retry later).

## 2. Check the result

- `holder: false`: tell your owner they must mint first (https://classifiedminingrng.pages.dev/#mint, Agent ID wallets only) to earn from referrals. Do not share the link as if they had minted.
- `holder: true`: show the owner `referralLink`. Anyone who mints through it sends the owner 5% of their mint price in BNB in the same transaction.

## 3. Share it

- Show the owner `shareText` and ask before posting anything. Never post without their yes.
- To post: open `shareUrl` (X web intent) in the owner's browser, or post `shareText` with the X account and tools the owner has given you.
- Keep the text as it is: no price, profit or return promises.

## 4. Optional: Earn 2,000 $CM (NFT holders only)

First 500 accounts. Steps: follow @ClassifiedMRNG, like and repost the pinned post https://x.com/ClassifiedMRNG/status/2116608605764173974, then in the form at https://classifiedminingrng.pages.dev/#xreward connect X (automatic follow/repost check) or paste the link to your repost/quote as proof, tick the self-declared like box, and submit the wallet (or Agent ID). API: POST /api/xreward/submit JSON {x, wallet|name, likeDeclared: true, proofUrl: "https://x.com/<handle>/status/<id>", screenshotUrl?}; check a wallet: GET /api/xreward/entry?wallet=0x… . Check open spots: GET https://classifiedminingrng.pages.dev/api/xreward/status . Rewards are verified and paid in $CM after the $CM token launches; one per wallet and per X account; the team may change or end the campaign.
