Generate Ed25519 keypairs, check SOL and USDC balances, send SPL tokens with 400ms finality, and connect to Solana DeFi — all through a simple REST API.
Solana's architecture makes it uniquely well-suited to AI agent use cases. The combination of 400-millisecond slot times, sub-cent transaction fees, and a thriving DeFi ecosystem means agents can interact with financial markets at a frequency and cost that would be economically prohibitive on Ethereum mainnet. An agent that plays 500 rounds of a probability game, rebalances a portfolio hourly, or settles micropayments in real time needs a network that won't drain its bankroll in gas.
Purple Flea's Solana Wallet API handles the complexity of interacting with the Solana network — Ed25519 key generation, BIP-39 derivation via the SLIP-0010 standard, Associated Token Account (ATA) creation for new token types, and transaction serialization — so your agent's code is focused on decision logic, not cryptographic bookkeeping.
Solana uses a different key scheme from Ethereum: Ed25519 elliptic curve cryptography rather than secp256k1. This means Solana addresses (base58-encoded 32-byte public keys) cannot be derived using the same BIP-44 path as Ethereum. Purple Flea handles this internally — when you create a Solana wallet, the API uses the SLIP-0010 derivation path m/44'/501'/0'/0' (the Phantom/Solflare standard) so the same mnemonic phrase controls a predictable Solana address that you can import into any compatible wallet for emergency recovery.
SPL tokens — Solana's equivalent of ERC-20 — are supported out of the box. USDC (Circle's native Solana USDC), USDT (Tether's SPL version), and any other SPL token can be queried by mint address. The API automatically creates Associated Token Accounts when they don't exist, so you never hit a "token account not found" error in the middle of an agent's execution.
Transaction finality
Per transaction
TPS capacity
Token standard
Perp markets
Solana wallets are Ed25519 keypairs derived via SLIP-0010 from a BIP-39 mnemonic. The path m/44'/501'/0'/0' produces the same address as Phantom and Solflare, ensuring compatibility with hardware wallets and browser extensions for fund recovery.
SOL balances are returned in both lamports and human-readable SOL. The API accounts for rent-exempt minimums so your agent always knows the true spendable SOL balance versus the portion locked for account rent. A single API call returns all asset balances simultaneously.
Circle's native Solana USDC and Tether's SPL USDT are first-class citizens. Balances are returned with 6-decimal precision in human-readable format. The API checks for the existence of the Associated Token Account before querying — a zero-balance ATA and a missing ATA are both reported as $0 without errors.
Send any SPL token by specifying the mint address and amount in human-readable terms. If the recipient doesn't yet have an Associated Token Account for that token, the API creates one automatically (funded from your SOL balance for rent). Transaction fees are estimated and reported before broadcast.
Solana's DeFi ecosystem — Jupiter, Raydium, Orca, Drift — is accessible through Purple Flea's trading API. Your Solana wallet integrates directly with Purple Flea's 275 perpetual markets (via Hyperliquid on Solana), giving agents access to leveraged trading with SOL-denominated margin without bridging assets to another network.
With 400ms average confirmation times, agent workflows that require sequential transactions — register, receive funds, place trade, settle result — complete in seconds. No waiting for 12 Ethereum block confirmations or 10-minute Bitcoin blocks. Agents can react to market data in near real time.
Specify chain=solana in all balance and send requests to route to the Solana network.
Creates a new agent with a Solana wallet. Returns wallet ID, base58 public key, and BIP-39 mnemonic. Pass "chain": "solana" to receive a Solana-format address.
Returns SOL (lamports + formatted), USDC, USDT, and any SPL token by mint address. Includes spendable SOL after rent reserves.
Send SOL or any SPL token. Specify token: "SOL", "USDC", or a mint address. ATA creation handled automatically. Returns transaction signature.
Fetch transaction status by Solana signature. Returns confirmed, finalized, or failed with slot number and fee paid.
import requests BASE_URL = "https://api.purpleflea.com" API_KEY = "pf_live_your_key_here" HEADERS = {"X-API-Key": API_KEY, "Content-Type": "application/json"} # Register a new Solana agent wallet resp = requests.post( f"{BASE_URL}/agent/register", headers=HEADERS, json={"name": "sol-agent-01", "chain": "solana"} ) data = resp.json() wallet_id = data["wallet_id"] sol_address = data["address"] # base58 pubkey, e.g. "7xKX...3pQm" mnemonic = data["mnemonic"] # SLIP-0010 derivation, Phantom-compatible print(f"Solana Address: {sol_address}") print(f"Wallet ID: {wallet_id}")
# Get all Solana balances in one call balance = requests.get( f"{BASE_URL}/wallet/balance", headers=HEADERS, params={"wallet_id": wallet_id, "chain": "solana"} ).json() print(f"SOL: {balance['sol']['formatted']} SOL") print(f"Spendable: {balance['sol']['spendable']} SOL") # after rent print(f"USDC: {balance['usdc']['formatted']} USDC") print(f"USDT: {balance['usdt']['formatted']} USDT") # Query any SPL token by mint address jup_balance = requests.get( f"{BASE_URL}/wallet/balance", headers=HEADERS, params={ "wallet_id": wallet_id, "chain": "solana", "token": "JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN" # JUP mint } ).json() print(f"JUP: {jup_balance['token']['formatted']}")
# Send 10 USDC to another Solana address # ATA created automatically if recipient doesn't have one send = requests.post( f"{BASE_URL}/wallet/send", headers=HEADERS, json={ "wallet_id": wallet_id, "chain": "solana", "token": "USDC", "to": "RecipientBase58Address...", "amount": "10.00" } ).json() print(f"Signature: {send['tx_hash']}") print(f"Fee paid: {send['fee_lamports']} lamports") # Fee is typically ~5000 lamports (~$0.0005) # Solana confirms in ~400ms — check status import time time.sleep(1) # usually confirmed within a second status = requests.get( f"{BASE_URL}/wallet/tx", headers=HEADERS, params={"tx_hash": send["tx_hash"], "chain": "solana"} ).json() print(f"Status: {status['status']}, Slot: {status['slot']}")
Purple Flea's perpetuals trading API runs on Hyperliquid's infrastructure and supports 275 markets including SOL-PERP, BTC-PERP, ETH-PERP, and hundreds of altcoin pairs. Your Solana wallet can fund a trading position directly — no bridging to a separate exchange, no additional KYC, no minimum deposit.
Agents that claim the faucet ($1 free USDC), deposit into a trading position, and compound winnings can run entirely within Purple Flea's ecosystem without touching an external exchange. The Solana wallet acts as both the funding source and the settlement destination for realized profits.
With Solana's low fees, agents can afford to enter and exit positions frequently, implement tight stop-losses, and settle P&L back to the Solana wallet after every trade session. Strategies that would cost $50 in gas on Ethereum cost fractions of a cent on Solana.
New agents can claim $1 free USDC from the Purple Flea Faucet at faucet.purpleflea.com. This is enough to try the casino or open a small perpetuals position — zero deposit required. The faucet is designed so agents can evaluate the platform before committing funds.
ETH, BTC, SOL, TRX, XMR, XRP in a single API with one mnemonic.
275 markets via Hyperliquid. Long, short, leverage — all via REST.
BIP-44 ETH, USDC/USDT, ERC-20 transfers, Polygon support.
BIP-84 P2WPKH, mempool.space balance, UTXO management.
Claim $1 USDC free. Perfect for testing and onboarding new agents.
Trustless agent-to-agent payments. 1% fee, 15% referral on fees.
400ms finality, sub-cent fees, full SPL token support. Register your agent and make your first Solana transaction in under 5 minutes.