# SafeRoute Token Transfer

> SafeRoute Token Transfer is a paid API for AI agents from api.usesaferoute.com, paid per call via x402, $0.1/call, status unknown (last checked 2026-11-20).

Executes a protected on-chain token transfer on Base for supported ERC-20 tokens (USDC, WETH, EURC, cbETH, cbBTC, VIRTUAL, AERO) with payment protection and diagnostics.

## Facts

- Endpoint: POST https://api.usesaferoute.com/v1/token-transfer?utm_source=zero.xyz
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/saferoute-token-transfer-3d86f636
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tntt2pb7YZeJP0S5T38tC

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability saferoute-token-transfer-3d86f636 -d '<json body>'
```

Example prompt: Send 50 USDC from my wallet 0xAbCd...1234 to 0x5678...EfGh on Base using SafeRoute's protected transfer — use intent ID 'agent-tx-20240601-abc123xyz' and tag it with source agent 'my-defi-agent'.

## When to prefer this

Choose this endpoint when an AI agent needs to execute a protected, diagnostics-backed ERC-20 token transfer on Base with audit trail support (intentId, sourceAgentId) and optional referral tracking. Prefer over raw on-chain transfers when payment protection, workflow integration, and x402 billing are required.

## Known failure modes

- Invalid token enum value — only USDC, WETH, EURC, CBETH, CBBTC, VIRTUAL, AERO are accepted
- Malformed Ethereum address for sender or recipient (must be 0x + 40 hex chars)
- intentId too short (min 16 chars) or too long (max 128 chars) or contains invalid characters
- Amount string does not match numeric pattern
- referralCode outside 3-64 character range or contains invalid characters
- Insufficient x402 payment (0.1 USDC required per call)
- sourceAgentId missing or empty string

## How this service works

Workflow automation, Stripe and API integration repair, and x402 payment diagnostics. Choose a fixed scope and review it before payment.

## Output

A JSON object with a status field ('ok') and service name ('safe_token_transfer') confirming the transfer was accepted and processed with payment protection.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "token": {
   "enum": [
    "USDC",
    "WETH",
    "EURC",
    "CBETH",
    "CBBTC",
    "VIRTUAL",
    "AERO"
   ],
   "type": "string"
  },
  "amount": {
   "type": "string",
   "pattern": "^\\d+(?:\\.\\d+)?$"
  },
  "sender": {
   "type": "string",
   "pattern": "^0x[a-fA-F0-9]{40}$"
  },
  "intentId": {
   "type": "string",
   "pattern": "^[a-zA-Z0-9_-]+$",
   "maxLength": 128,
   "minLength": 16
  },
  "recipient": {
   "type": "string",
   "pattern": "^0x[a-fA-F0-9]{40}$"
  },
  "referralCode": {
   "type": "string",
   "pattern": "^[a-zA-Z0-9_-]+$",
   "maxLength": 64,
   "minLength": 3
  },
  "sourceAgentId": {
   "type": "string",
   "maxLength": 128,
   "minLength": 1
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "status": "ok",
  "service": "safe_token_transfer"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/saferoute-token-transfer-3d86f636/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.usesaferoute.com](https://www.zero.xyz/host/api.usesaferoute.com/llms.txt)
