Get deposit address (Chainflip / NEAR)
Endpoint Details
Deposit Address
Get a deposit address with QR code for Chainflip or NEAR protocols (auto-selected if not specified)
POST
Get deposit address (Chainflip / NEAR)
Overview
/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.
Endpoint
Request
Headers
Body
Response
Success (200)
Field Reference
Wallet-less Swap Flow
For applications without a connected wallet (e.g. embedded swap widgets), passfrom_address and to_address directly:
amount from the wallet of their choice to deposit_address.
Errors
See the error codes catalog for the full list.
See Also
- Generate Deposit — for protocols that return unsigned transactions
- Simple Swap — single-call quote + deposit-address for chainflip/near
- QR Code Enrichment
Authorizations
Demo API-Key (Sandbox): 7037d2b3-9c76-4f62-b730-c544f7570fa4
Body
application/json
Request body for /deposit-address. If protocol is omitted, the best chainflip/near quote is auto-selected.
Optional. Auto-selected if omitted.
Available options:
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).