Skip to main content
POST
Simple swap

How It Works

Compared to the standard multi-step flow (/quote/deposit), this reduces two API calls to one. Only works with deposit-address-based protocols (Chainflip and NEAR).

Payment URI Standards

The payment_uri follows the wallet standard for the source chain:

Example: BTC to ETH

Errors

See the error codes catalog for the full list.

Authorizations

Api-Key
string
header
required

Demo API-Key (Sandbox): 7037d2b3-9c76-4f62-b730-c544f7570fa4

Body

application/json

Request body for /simple. One-call swap endpoint for deposit-address protocols.

from_asset
string
required

Source asset identifier (CHAIN.SYMBOL-ADDRESS).

Example:

"ETH.ETH"

to_asset
string
required

Destination asset identifier (CHAIN.SYMBOL-ADDRESS).

Example:

"ARB.USDC-0xaf88d065e77c8cC2239327C5EDb3A432268e5831"

amount
string
required

Human-readable amount to swap.

Example:

"0.5"

from_address
string
required

Sender address on the source chain (used as refund address).

Example:

"0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb0"

to_address
string
required

Recipient address on the destination chain.

Example:

"0x1234567890AbcdEF1234567890aBcdef12345678"

slippage_bps
string

Slippage tolerance in basis points. Defaults to 150 (1.5%).

Example:

"100"

Response

Simple swap response with quote, deposit address, and QR code.

Response from /simple containing quote, deposit address, and QR code.

quote_id
string<uuid>
required

Quote identifier for tracking via /status.

protocol
enum<string>
required

Protocol selected (always chainflip or near).

Available options:
chainflip,
near
deposit_address
string
required

Address to send funds to.

amount
string
required

Human-readable amount to send.

amount_raw
string
required

Amount in smallest unit (wei, sats, etc.).

decimals
integer
required

Decimal places for the source asset.

from_asset
string
required

Source asset identifier.

to_asset
string
required

Destination asset identifier.

network
string
required

Source chain short name (e.g. ETH, BTC).

expected_amount_out
number
required

Expected output amount (human-readable).

payment_uri
string
required

Chain-specific payment URI (BIP-21, EIP-681, or Solana Pay).

qr_url
string
required

CDN URL of a QR code PNG encoding the payment_uri.

expected_amount_out_usd
number | null

Expected output in USD.

total_swap_seconds
integer | null

Estimated swap time in seconds.

fees
object[]

Fee breakdown.

expires_at
integer<int64> | null

Unix timestamp (seconds) when the deposit channel expires.