Skip to content
Last updated

Custodial vs. Non-Custodial Off-Ramp

For the complete documentation index, see llms.txt. Append .md to any page URL for its markdown version.

For the off-ramp (sell) flow, the customer's crypto has to reach a Banxa deposit address. How that happens is the fulfilment flow. The right choice depends on whether your platform holds custody of your customers' crypto, and whether your app can sign the transfer itself.

The fulfilment flow is set on your partner account by Banxa, not per order. → See Choosing a flow.

QR code / MetaMask

Native Wallet

Custodial

Sell order initiated

POST /v2/sell

Customer completes checkout
KYC + bank account details

Banxa issues a deposit address

Account fulfilment flow

Customer sends crypto
from their own wallet in checkout

Banxa detects the deposit

Banxa redirects to your redirectUrl
with the deposit details

Your app signs and sends
the transfer

Webhook fires to partner endpoint

Partner calls GET /v2/orders/:id
to get the deposit address

Partner sends crypto, then
POST /v2/orders/:id/confirm

Fiat payout released to customer

QR code / MetaMask

Native Wallet

Custodial

Sell order initiated

POST /v2/sell

Customer completes checkout
KYC + bank account details

Banxa issues a deposit address

Account fulfilment flow

Customer sends crypto
from their own wallet in checkout

Banxa detects the deposit

Banxa redirects to your redirectUrl
with the deposit details

Your app signs and sends
the transfer

Webhook fires to partner endpoint

Partner calls GET /v2/orders/:id
to get the deposit address

Partner sends crypto, then
POST /v2/orders/:id/confirm

Fiat payout released to customer


Non-custodial flows

The crypto is sent from the customer's own wallet. Depending on the flow, the customer sends it from inside the Banxa checkout, or your wallet app sends it after Banxa hands back the deposit details.

FlowBest forWhat the customer sees
QR codeAny external walletQR code plus deposit details
MetaMaskWeb dApps on EVM chainsConnect wallet button
Native WalletWallet apps that sign the transfer themselvesRedirected straight back to your app
WebView bridgeMobile apps embedding checkout in a WebViewYour app receives the deposit details via postMessage

HashPack (Hedera) and zkSync wallet flows are also available on request.

If no fulfilment flow is configured for your account, the customer sees error 50422 at the deposit step.

Best for:

  • Self-custody wallets where the customer controls their private keys.
  • Consumer wallet applications.

QR code

Banxa shows a QR code of the deposit address, a table of the deposit details (address, network, amount, and memo if any) and an "I've deposited" button. The customer scans the code or copies the address and sends from any wallet.

MetaMask

Banxa shows a Connect wallet button. After the customer connects, Banxa checks the wallet is on the correct network (prompting the customer to switch if not), builds the transfer, and asks the customer to sign it in MetaMask.

Any EVM network and token that Banxa has configured is supported. Use GET /v2/crypto/sell to see which assets are available to you.

Native Wallet (Return to Wallet)

Once the deposit address is ready, Banxa automatically redirects the customer to the order's redirectUrl (or, if that's missing, your account's default success URL). Your app then builds, signs and sends the transfer.

Query parameters added to the redirect:

ParameterDescription
orderIdBanxa order ID.
providerWalletAddressBanxa's deposit address. Send the crypto here.
providerWalletAddressTagMemo or tag to include with the transfer (memo chains only).
blockchainNetwork code.
coinTypeAsset code.
coinAmountExact amount to send (up to 8 decimal places).
customerWalletAddressThe customer wallet given at order creation (walletAddress).

Parameters with no value are left out. Any query parameters already on your redirectUrl are kept.

Example redirect:

myapp://banxa/sell?orderId=7dbb7f5c2ad8bbbd022e4426fe98fb3a
  &providerWalletAddress=0x03EA4c7ED1d8199510017D88f2783Ef43ab5a4fd
  &blockchain=ETH&coinType=USDT&coinAmount=39.29000000
  &customerWalletAddress=0xcbf80ee36fbf03307962576f338fc50b942e0591

Send exactly coinAmount to providerWalletAddress, and include providerWalletAddressTag as the memo when it is present.

This flow requires the deposit address to be visible on your account (the "hide address" setting must be off). If it is hidden, the deposit details are never released and the customer stays on the waiting screen. If no redirect URL is available, the customer sees error 50422.

WebView bridge

For mobile apps that embed checkout in a WebView. Instead of redirecting, Banxa posts the deposit details to the host app with postMessage, and your app signs and sends the transfer. Contact Banxa for the message format.


Custodial flow

Your platform holds custody of the customer's crypto and executes the blockchain transfer on their behalf. The customer never sees deposit instructions: Banxa shows them an "in progress with merchant" status page and doesn't send them the order email.

Requirements:

  • Your account is set up as custodial. This is a B2B account setting configured by Banxa.
  • You have a webhook URL configured.

The custodial setting replaces your account's non-custodial flow, except the WebView bridge, which still applies.

Hiding the address is not the same as custodial

Hiding the deposit address on your account does not make the flow custodial. Without the custodial setting, a hidden address leaves the customer waiting with no way to deposit, and no webhook-driven flow takes over.

How it works:

  1. Customer creates a sell order and completes checkout (KYC, bank account details).
  2. Banxa updates the order status to waitingPayment and triggers a webhook to your endpoint. The webhook payload does not include the deposit address.
  3. Your platform calls GET /v2/orders/{orderId} to retrieve the deposit address (walletAddress), memo (walletAddressTag) and cryptoAmount.
  4. Your platform sends the crypto from the customer's walletAddress (the one given at order creation) to Banxa's deposit address.
  5. Your platform confirms the transfer with POST /v2/orders/{orderId}/confirm.
  6. Banxa detects the deposit and processes the fiat payout.

Confirm the transfer

POST /{partnerRef}/v2/orders/{orderId}/confirm

orderId can be the Banxa order ID or your externalOrderId.

FieldTypeRequiredDescription
transactionHashstringYesHash of the on-chain transfer to Banxa's deposit address.
sourceAddressstringYesAddress the crypto was sent from. Must match the walletAddress given at order creation, or the request is rejected.
sourceAddressTagstringNoMemo or tag of the source address.
targetAddressstringYesBanxa's deposit address (walletAddress from GET /v2/orders/{orderId}).
targetAddressTagstringNoMemo or tag sent with the transfer (walletAddressTag from GET /v2/orders/{orderId}).
curl -X POST "https://api.banxa-sandbox.com/{partnerRef}/v2/orders/7dbb7f5c2ad8bbbd022e4426fe98fb3a/confirm" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "transactionHash": "0x5ea06c4724e8119704a1b57c918acf31742eb06cdf3f8678fdb17f41bbaf968e",
    "sourceAddress": "0xcbf80ee36fbf03307962576f338fc50b942e0591",
    "targetAddress": "0x03EA4c7ED1d8199510017D88f2783Ef43ab5a4fd"
  }'

202 Accepted

{
  "message": "This transaction hash has been accepted for validation."
}

A 202 means the hash was accepted for validation, not that the deposit is confirmed. Track the order through webhooks or order lookup.

Best for:

  • Exchanges or custodial wallet products where your platform manages customer funds.
  • Cases where you want to automate the crypto transfer without customer action.

Choosing a flow

Contact Banxa to configure your preferred flow. The flow is set at the partner account level and applies to all sell orders for your integration.

ConsiderationQR code / MetaMaskNative Wallet / WebView bridgeCustodial
You hold customer cryptoNoNoYes
Who sends the cryptoCustomer, in checkoutYour app, from the customer's walletYour platform
Webhook integration requiredOptionalOptionalYes
Calls POST /v2/orders/{orderId}/confirmNoNoYes

→ See Expiry and incorrect deposits for what happens when a deposit is late or incorrect.