Skip to main content
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), pass from_address and to_address directly:
The user is then expected to send amount from the wallet of their choice to deposit_address.

Errors

See the error codes catalog for the full list.

See Also

Authorizations

Api-Key
string
header
required

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.

quote_id
string<uuid>
required
protocol
enum<string>

Optional. Auto-selected if omitted.

Available options:
chainflip,
near
selected_protocol
string

Alias for protocol.

type
string

Sub-protocol variant (e.g. Chainflip DCA).

from_address
string

Override refund/source address (wallet-less swap flows).

to_address
string

Override recipient/destination address (wallet-less swap flows).

Response

Deposit address with QR code and payment URI.

status
integer
required
data
object
required