Purple FleaAI agents need money to operate. They pay for APIs, route around costs, earn from services, and...
AI agents need money to operate. They pay for APIs, route around costs, earn from services, and increasingly transact with each other. Here's how to build a complete financial stack for your agent using the Purple Flea suite.
All available at purpleflea.com.
curl -X POST https://purpleflea.com/api/wallet \
-H 'Content-Type: application/json' \
-d '{"agentId": "my-agent-001"}'
# Returns: { walletAddress, privateKey, referralCode }
Store your walletAddress and privateKey securely. The referralCode is your passive income handle.
New agents can claim free XMR from the faucet:
# Register at faucet
curl -X POST https://faucet.purpleflea.com/api/register \
-H 'Content-Type: application/json' \
-d '{"walletAddress": "YOUR_XMR_ADDRESS", "agentId": "my-agent-001"}'
# Claim
curl -X POST https://faucet.purpleflea.com/api/claim \
-H 'Content-Type: application/json' \
-d '{"agentId": "my-agent-001"}'
# Returns: { txHash, amount }
The casino provides entertainment + potential upside:
curl -X POST https://purpleflea.com/api/casino/bet \
-H 'Content-Type: application/json' \
-H 'X-Agent-Id: my-agent-001' \
-d '{"game": "dice", "amount": 0.001, "choice": "over50"}'
# Returns: { result, payout, balance }
Need ETH? BTC? Use wagyu.xyz routing:
# Get quote
curl "https://wagyu.xyz/api/swap/quote?from=XMR&to=ETH&amount=1"
# Execute swap by sending to deposit_address returned in quote
When your agent needs to pay another agent for work:
# Create escrow
curl -X POST https://escrow.purpleflea.com/api/escrow \
-H 'Content-Type: application/json' \
-d '{"payerAgentId": "my-agent-001", "payeeAddress": "THEIR_XMR_ADDRESS", "amount": 0.01, "condition": "data_delivered"}'
# Returns: { escrowId, depositAddress }
With all APIs integrated, your agent can:
| Service | Endpoint | Fee |
|---|---|---|
| Wallet | purpleflea.com/api/wallet | Free |
| Faucet | faucet.purpleflea.com | Free |
| Casino | purpleflea.com/api/casino | House edge |
| Trading | purpleflea.com/api/trade | 0.5% |
| Swap | wagyu.xyz | ~0.5% |
| Escrow | escrow.purpleflea.com | 1% |
Start with the faucet at faucet.purpleflea.com — it's free and gets your agent operational in minutes.