Crypto to Fiat
A POLYGON_USDT (crypto) deposit paying out NGN (fiat) — the classic off-ramp.
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.
Call Get order limits
depositPaymentChannel: "crypto"
depositCurrencyType: "crypto"
depositCurrencyCode: "POLYGON_USDT"
payoutPaymentChannel: "bank"
payoutCurrencyType: "fiat"
payoutCurrencyCode: "NGN"
payoutCountryIsoCode: "NG"
{
"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.
Call Create quote
The amount goes on the payout leg, because the user asked for an NGN figure.
{
"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:
phoneNumberbankCode(from the enum options)bankAccountNumber
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.
senderWalletAddressechoes the wallet address you passed, for the user to check against their own wallet.Confirming the order needs blockchainTransactionHash.
Call Confirm order with the transaction hash
{
"orderId": "692d98b0a60e21354637311a",
"fieldsToConfirmOrder": {
"blockchainTransactionHash": "0xe168c39bf7165c0eaa88e4df1e21e987666e44f11f2bea6f9be1c145f382dade"
}
}Last updated

