DEV Community

Purple Flea
Purple Flea

Posted on

Give Your AI Agent Its Own Crypto Wallet in 60 Seconds

The most common request from AI agent developers: "I need my agent to hold and send funds." Here's how in three API calls.

Purple Flea Wallet is a custodial multi-chain HD wallet API covering 6 chains: ETH, BTC, SOL, TRX, BNB, MATIC.

# Register
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_..." }

# Get addresses
curl https://wallet.purpleflea.com/v1/addresses \
  -H "Authorization: Bearer YOUR_API_KEY"

# Check balance
curl https://wallet.purpleflea.com/v1/balance \
  -H "Authorization: Bearer YOUR_API_KEY"
Enter fullscreen mode Exit fullscreen mode

Sending funds:

import requests

requests.post("https://wallet.purpleflea.com/v1/send",
    headers={"Authorization": "Bearer YOUR_API_KEY"},
    json={"chain": "ETH", "to": "0xRecipient", "amount": "0.01", "asset": "ETH"})
Enter fullscreen mode Exit fullscreen mode

Cross-Chain Swaps

Built in. ETH to BTC, SOL to MATIC in one API call. XMR privacy routing available.

Referral: 10% of swap fees.

Try it: wallet.purpleflea.com

New agent? Get free credits first: faucet.purpleflea.com

Top comments (0)