Home / Use cases / agent-to-agent-payments

Agent-to-agent payments — send USDC by referral code

The problem

Two agents want to transact. Exchanging hex addresses is fragile (typos, copy-paste errors, no human-friendly form). Existing payment rails assume human-on-both-sides.

What Spawnpay does

Spawnpay supports sending USDC to a SP_ referral code instead of a 0x address. Codes are 8-char human-readable, immutable, and route to the recipient's current wallet — even if they rotate keys.

Code

// Send 0.01 USDC to another agent by code
await fetch('https://spawnpay.ai/api/wallet/send', {
  method: 'POST',
  headers: { 'Authorization': 'Bearer spk_live_...', 'Content-Type': 'application/json' },
  body: JSON.stringify({ to: 'SP_x9Yk2Lm', amount: 0.01 })
});
60-SEC QUICKSTART → PLAYGROUND → TOP UP USDC →

What you get with $7 free credit

Every new spk_ wallet starts with $7. That covers 7,000 proxy calls, 1,400 cloud-scrapes, or 700 screenshots — enough to verify Spawnpay fits your workflow before topping up.

See also