Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Crypto to Fiat

A POLYGON_USDT (crypto) deposit paying out NGN (fiat) — the classic off-ramp.

Every response on this page is a sandbox capture, so the contract address, the bank list and the rates are sandbox values. Production addresses are on Supported countries and cryptocurrencies; read yours from Get available currencies rather than either.

1

Call Get available currencies

POLYGON_USDT allows deposits, and NGN's bank channel has isPayoutAllowed: true. So POLYGON_USDT → NGN over bank is legal. airtime would work as a payout too — add a carrierCode if you use it.

2

Call Get order limits

  • depositPaymentChannel: "crypto"

  • depositCurrencyType: "crypto"

  • depositCurrencyCode: "POLYGON_USDT"

  • payoutPaymentChannel: "bank"

  • payoutCurrencyType: "fiat"

  • payoutCurrencyCode: "NGN"

  • payoutCountryIsoCode: "NG"

Example response
{
    "deposit": {
        "min": 1,
        "max": 500,
        "minUsd": 1,
        "maxUsd": 500,
        "step": 0.000001,
        "supportsDecimals": true
    },
    "payout": {
        "min": 1409,
        "max": 704460,
        "minUsd": 1,
        "maxUsd": 500,
        "step": 1,
        "supportsDecimals": false
    }
}

The user can send 1 to 500 POLYGON_USDT and receive 1,409 to 704,460 NGN. Note that the NGN leg is whole units only — supportsDecimals: false, step: 1.

The user wants 30,000 NGN. Check their KYC tier with the KYC flow, passing the amounts. Off-ramp KYC is a per-country switch and South Africa is currently the only country where it is on, so a Nigerian off-ramp needs none — but read offrampKycRequired rather than assuming. See KYC.

3

Call Create quote

The amount goes on the payout leg, because the user asked for an NGN figure.

Example request
{
    "deposit": {
        "paymentChannel": "crypto",
        "currencyType": "crypto",
        "currencyCode": "POLYGON_USDT"
    },
    "payout": {
        "paymentChannel": "bank",
        "currencyType": "fiat",
        "currencyCode": "NGN",
        "countryIsoCode": "NG",
        "amount": 30000
    }
}

To receive 30,000 NGN the user must deposit 21.272315 POLYGON_USDT — that is deposit.cashout.amountBeforeFees. Collect the fields marked required on both legs:

  • phoneNumber

  • bankCode (from the enum options)

  • bankAccountNumber

blockchainWalletAddress is not required on a crypto deposit leg — it is required: false there, and required: true only when crypto is the payout. Send it anyway if you know it: it comes back in the transfer details as senderWalletAddress, which is what the user sees as "your wallet address". It is a display value, not a filter — the deposit is recognised from the transaction hash you confirm with.

4

Call Create order

From transferInstructions and fieldsToConfirmOrder we know:

  • The user sends 21.272315 Polygon USDT to 0xdc9cbad0c43f912a66cd44cd22a15c04368e659f. Send the exact amount, on that network, to that address.

  • senderWalletAddress echoes the wallet address you passed, for the user to check against their own wallet.

  • Confirming the order needs blockchainTransactionHash.

5

The user sends the exact amount to that address

6

Call Confirm order with the transaction hash

Example request
{
  "orderId": "692d98b0a60e21354637311a",
  "fieldsToConfirmOrder": {
     "blockchainTransactionHash": "0xe168c39bf7165c0eaa88e4df1e21e987666e44f11f2bea6f9be1c145f382dade"
  }
}
7

We confirm the transaction on-chain and send the NGN payout

8

Wait for "payout_successful"

Handle the order-status-change webhook, or poll Get order.

Last updated