{
"amount": 25000,
"address": "0x8Ba1f109551bD432803012645Ac136ddd64DBA72",
"networkId": "9b2e6a1f-3c4d-4e5f-8a7b-1c2d3e4f5a6b",
"shouldSaveAddress": true
}
curl -X POST "https://api.cngn.co/v1/api/withdraw" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"content": "<base64 AES-256-CBC ciphertext of the plain body>",
"iv": "<base64 16-byte IV>"
}'
{
"status": 200,
"message": "Withdrawal was successfully",
"data": {
"trxRef": "WD-7f3a2b1c",
"address": "0x8Ba1f109551bD432803012645Ac136ddd64DBA72"
}
}
{
"status": false,
"message": "Permission denied"
}
On-Chain Transfers
Withdraw
Withdraw cNGN to an external wallet address
POST
/
v1
/
api
/
withdraw
{
"amount": 25000,
"address": "0x8Ba1f109551bD432803012645Ac136ddd64DBA72",
"networkId": "9b2e6a1f-3c4d-4e5f-8a7b-1c2d3e4f5a6b",
"shouldSaveAddress": true
}
curl -X POST "https://api.cngn.co/v1/api/withdraw" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"content": "<base64 AES-256-CBC ciphertext of the plain body>",
"iv": "<base64 16-byte IV>"
}'
{
"status": 200,
"message": "Withdrawal was successfully",
"data": {
"trxRef": "WD-7f3a2b1c",
"address": "0x8Ba1f109551bD432803012645Ac136ddd64DBA72"
}
}
{
"status": false,
"message": "Permission denied"
}
Sends cNGN from your business balance to an external wallet on a supported network.
Response (decrypted
Requires the Send Crypto permission. The request body must be encrypted. The destination address may need to be whitelisted first, depending on your account configuration.
Body parameters (plain payload, pre-encryption)
number
required
Amount of cNGN to withdraw.
string
required
Destination wallet address on the target network.
string
required
Target network ID, from Get Networks.
boolean
default:"false"
Save the destination address for future withdrawals.
Response (decrypted data)
string
Withdrawal transaction reference. Poll Verify Withdrawal with this value to track status.
string
Destination address the withdrawal was sent to.
{
"amount": 25000,
"address": "0x8Ba1f109551bD432803012645Ac136ddd64DBA72",
"networkId": "9b2e6a1f-3c4d-4e5f-8a7b-1c2d3e4f5a6b",
"shouldSaveAddress": true
}
curl -X POST "https://api.cngn.co/v1/api/withdraw" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"content": "<base64 AES-256-CBC ciphertext of the plain body>",
"iv": "<base64 16-byte IV>"
}'
{
"status": 200,
"message": "Withdrawal was successfully",
"data": {
"trxRef": "WD-7f3a2b1c",
"address": "0x8Ba1f109551bD432803012645Ac136ddd64DBA72"
}
}
{
"status": false,
"message": "Permission denied"
}