Get a deposit address with QR code for Chainflip or NEAR protocols (auto-selected if not specified)
Documentation Index
Fetch the complete documentation index at: https://docs.leokit.dev/llms.txt
Use this file to discover all available pages before exploring further.
/leokit/deposit-address returns a deposit address (plus payment URI and QR code) for protocols that don’t require a signed transaction from the user — currently Chainflip and NEAR. The user simply sends funds to the address; the protocol handles the rest.
This endpoint is similar to /leokit/deposit but specialized for address-based protocols. It also accepts from_address and to_address overrides for wallet-less swap flows (e.g. paid-on-receipt apps where the user has no connected wallet).
If protocol is omitted, the best available chainflip/near quote is auto-selected by expected_amount_out.
| Header | Value |
|---|---|
Content-Type | application/json |
Api-Key | Your API key |
| Field | Type | Required | Description |
|---|---|---|---|
quote_id | string | Yes | Quote ID from /leokit/quote or /leokit/streaming-quotes |
protocol | string | No | chainflip or near. If omitted, auto-selects the best offer |
selected_protocol | string | No | Alias for protocol |
type | string | No | Sub-protocol variant (e.g. Chainflip DCA). Default: regular swap |
from_address | string | No | Override refund/source address (for wallet-less swaps) |
to_address | string | No | Override destination/recipient address (for wallet-less swaps) |
| Field | Description |
|---|---|
deposit_address | Address the user must send funds to |
amount | Decimal amount in source-asset units |
amount_raw | Same amount in base units (wei, sats, etc.) as a string |
decimals | Source-asset decimals |
network | Source chain code (BTC, ETH, THOR, etc.) |
protocol | Selected protocol (chainflip or near) |
chainflip_channel_id | Chainflip swap-channel ID (Chainflip only — null for NEAR) |
payment_uri | Wallet-scannable URI (BIP-21, EIP-681, Solana Pay, etc.) |
qr_url | CDN URL of a PNG QR code encoding the payment_uri |
expires_at | ISO-8601 timestamp after which the quote/channel expires |
from_address and to_address directly:
amount from the wallet of their choice to deposit_address.
| Status | Code | Description |
|---|---|---|
400 | SELECTED_QUOTE_IS_NOT_SET | quote_id missing or empty |
400 | NO_DEPOSIT_ADDRESS_PROTOCOL | Auto-selection failed: no chainflip/near quote in the offer set |
400 | UNSUPPORTED_PROTOCOL | protocol is not chainflip or near |
400 | Validation | Quote validation failed (expired, malformed, etc.) |
401 | INVALID_API_KEY | Missing or invalid API key |
502 | MISSING_DEPOSIT_ADDRESS | NEAR could not return a deposit address (live re-fetch failed) |
Demo API-Key (Sandbox): 7037d2b3-9c76-4f62-b730-c544f7570fa4
Request body for /deposit-address. If protocol is omitted, the best chainflip/near quote is auto-selected.
Optional. Auto-selected if omitted.
chainflip, near Alias for protocol.
Sub-protocol variant (e.g. Chainflip DCA).
Override refund/source address (wallet-less swap flows).
Override recipient/destination address (wallet-less swap flows).