Funding

Build a centralized-exchange transfer link for a session.

Changed on

Builds a prefilled centralized-exchange (cex) transfer link for a session.

Returns a hosted exchange transfer URL: the user signs into their own exchange account and the exchange delivers the asset to the session's wallet, handling any bridging from the balance they hold. Destination address and chain are derived from the session, not the client. The active cex provider is resolved server-side. Requires the session clientSecret.

post/v2/funding/pay_link

Request

  • Base URL: https://api.openfort.io
  • URL: https://api.openfort.io/v2/funding/pay_link
  • Auth: HTTP bearer

Request body

sessionIdstring required

The funding session id (starts with fnd_) whose wallet receives the funds.

clientSecretstring required

The session's client secret, returned at creation.

amountstring required

Amount to deliver, in the asset's human units. Minimum 5 (the cex provider's minimum, enforced server-side).

assetstring

Asset ticker to deliver, as the exchange labels it. Must be supported by the cex provider on the session's chain. Defaults to "USDC".

Example request

{
  "sessionId": "fnd_1a2b3c",
  "amount": "10",
  "asset": "USDC"
}

Response

Successful response.

urlstring required

The hosted exchange URL to open (prefilled transfer page).

Changes