Skip to main content

Base URLs

Conventions

  • JSON in and out. Send content-type: application/json with a body.
  • Amounts are decimal integer strings in the asset’s base units: 6 decimals for USDC and USDT0 on EVM chains, 7 decimals for Stellar assets. "20000000" on Base is 20 USDC; "200000000" on Stellar is 20 USDC.
  • Chains are CAIP-2 (eip155:8453, stellar:pubnet, stellar:testnet). Assets are CAIP-19 on EVM chains and stellar:CODE:ISSUER on Stellar.
  • EVM addresses are stored lower-case.
  • Times are ISO 8601 strings in UTC.
  • Status words follow SEP-24 and quote fields follow SEP-38.

Authentication

Send Authorization: Bearer <token>, where the token is a SEP-10 JWT or a Privy access token. GET /v1/routes, the SEP-10 endpoints and the order book need none. See Authentication.

Idempotency

POST /v1/transfers requires an Idempotency-Key header. A repeat with the same key returns the same transfer. Use a new UUID for each transfer the user starts.

Errors

Errors have a JSON body with a message.

Limits