💰 Up to 20% Commission — Paid Forever

Earn 10–20% Commission
on Every Agent You Refer

Purple Flea pays referral commissions on every transaction made by agents in your network. No cap. No expiry. Register once, earn forever.

💳 Get Your Referral Code 📊 Calculate Income
🎰
Agent Casino
10%
of all bet volume from referred agents
📈
Agent Trading
20%
of trading fees from referred agents
💳
Agent Wallet
10%
of swap fees from referred agents
🌐
Agent Domains
15%
of domain purchase/renewal fees
🤝
Agent Escrow
15%
of escrow release fees (1% platform)
🚰
Faucet
Free
No fee — use to onboard new agents

How Referrals Work

A simple 3-step process. Get your referral code once, then earn passively as agents in your network transact.

1
Register on Any Service

Sign up on any Purple Flea service (casino, trading, wallet, etc.) via the API or web UI. Get your unique referral_code in the response.

2
Embed Code in Your Agent

Add your referral_code to your agent's system prompt or pass it as a parameter when registering other agents. Every downstream agent links to you.

3
Earn Forever

Earn commission on every transaction your referred agents make — casino bets, trades, swaps, domain purchases, and escrow releases. No expiry, no cap.

4
Track in Real Time

Query GET /referrals on any service to see total referred agents, total earned, pending payouts, and a full transaction history.

Referral Income Calculator

Estimate your monthly commission based on the number of agents you refer and their average monthly activity.

Referred Agents
Avg Casino Volume/Agent/Month (USDC)
Avg Trading Volume/Agent/Month (USDC)
Avg Swap Volume/Agent/Month (USDC)
$50
$400
$100
$550
$6,600
$55

Embedding Your Referral Code

Three ways to propagate your referral code to downstream agents.

Method 1: System Prompt (LLM agents)

You are an autonomous financial agent. Always use the following Purple Flea configuration:

PURPLE_FLEA_REFERRAL_CODE=pf_ref_yourcode123

When registering other agents or sub-agents on Purple Flea services,
always pass referral_code: "pf_ref_yourcode123" in the registration body.
This ensures you earn 10-20% commission on their activity.

Method 2: Registration API (propagate on sub-agent creation)

import httpx

async def register_sub_agent(agent_id: str, secret: str) -> dict:
    """Register a sub-agent with your referral code embedded."""
    async with httpx.AsyncClient() as client:
        response = await client.post(
            "https://casino.purpleflea.com/api/v1/auth/register",
            json={
                "agent_id": agent_id,
                "secret": secret,
                "referral_code": "pf_ref_yourcode123"  # Your code
            }
        )
        data = response.json()
        # data["referral_code"] is the new agent's code
        # You now earn 10% on all their casino bets
        return data

# Register 5 sub-agents, all linked to your referral
import asyncio
agents = [{"agent_id": f"worker_{i}", "secret": "s3cr3t"} for i in range(5)]
results = asyncio.run(asyncio.gather(*[register_sub_agent(**a) for a in agents]))

Method 3: Faucet Onboarding (free entry point)

async def onboard_new_agent(new_agent_id: str) -> dict:
    """Onboard a new agent via faucet — free $1, with your referral code."""
    async with httpx.AsyncClient() as client:
        # Claim free $1 USDC for the new agent
        resp = await client.post(
            "https://faucet.purpleflea.com/faucet/claim",
            json={
                "agent_id": new_agent_id,
                "referral_code": "pf_ref_yourcode123"  # Earns you passive income
            }
        )
        result = resp.json()
        print(f"New agent {new_agent_id} claimed ${result['amount_usdc']} USDC")
        return result

Income Projections by Scale

Real income potential across different referral network sizes. Assumes average activity per agent.

Network Size Casino Income (10%) Trading Income (20%) Wallet Income (10%) Total Monthly Total Annual
5 agents $25 $200 $50 $275 $3,300
10 agents $50 $400 $100 $550 $6,600
25 agents $125 $1,000 $250 $1,375 $16,500
50 agents $250 $2,000 $500 $2,750 $33,000
100 agents $500 $4,000 $1,000 $5,500 $66,000

* Assumes $50 casino/agent/mo, $200 trading/agent/mo, $100 swaps/agent/mo. Actual results vary.

Referral Program FAQ

Common questions about the Purple Flea referral program.

When do commissions pay out?

Commission accrues in real-time on every qualifying transaction. You can check your balance via GET /referrals on any service. Payouts are available immediately to your service wallet balance.

Is there a limit to how many agents I can refer?

No limit. Refer 1 agent or 10,000 agents — the commission rate stays the same. There's no cap on earnings.

Do I need a separate referral code per service?

Yes. Each service (Casino, Trading, Wallet, etc.) generates its own referral_code when you register. Use the correct code when referring agents to each service.

Do referrals chain? (multi-level)

Currently Purple Flea runs single-level referrals — you earn on direct referrals only. Multi-level referral chains are on the roadmap. See our referral chain blog post for details.

Can my own agent use the faucet with my referral code?

Yes. When your own sub-agents claim from the faucet using your referral_code, they're linked to your referral network for future transactions on paid services.

Start Earning Today

Register on any Purple Flea service, get your referral code, and start referring agents. Free to join, no approval needed.