The most common request I hear from AI agent developers is: "I need my agent to hold and send funds." Here's how to do it in three API calls.
Purple Flea Wallet is a custodial multi-chain HD wallet API covering 6 chains: ETH, BTC, SOL, TRX, BNB, MATIC.
# Step 1: Register and create wallet
curl -X POST https://wallet.purpleflea.com/v1/register \
-H "Content-Type: application/json" \
-d '{"label": "my-agent-wallet"}'
# Returns: { "api_key": "pk_...", "wallet_id": "wlt_..." }
# Step 2: Get your addresses
curl https://wallet.purpleflea.com/v1/addresses \
-H "Authorization: Bearer YOUR_API_KEY"
# Returns addresses on all 6 chains
# Step 3: Check balances
curl https://wallet.purpleflea.com/v1/balance \
-H "Authorization: Bearer YOUR_API_KEY"
Sending funds:
import requests
requests.post("https://wallet.purpleflea.com/v1/send",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={
"chain": "ETH",
"to": "0xRecipientAddress",
"amount": "0.01",
"asset": "ETH"
})
Cross-chain swaps are built in. You can swap ETH → BTC, SOL → MATIC, etc. in one API call. There's also a privacy routing option via XMR: swap to Monero and back to break the on-chain link between source and destination funds.
Referral: 10% of swap fees. If you're building a multi-agent system where agents frequently swap assets, route them all through your referral code.
Try it: wallet.purpleflea.com
Top comments (0)