{
"amount": 100000,
"originNetworkId": "1f2e3d4c-5b6a-7988-9a0b-c1d2e3f4a5b6",
"destinationNetworkId": "9b2e6a1f-3c4d-4e5f-8a7b-1c2d3e4f5a6b",
"destinationAddress": "0x8Ba1f109551bD432803012645Ac136ddd64DBA72"
}
curl -X POST "https://api.cngn.co/v1/api/bridge-quote" \
-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": "Swap quote fetched successfully",
"data": {
"amountReceivable": "99750.00",
"networkFee": "150.00",
"bridgeFee": "100.00"
}
}
{
"status": false,
"message": "Permission denied"
}
On-Chain Transfers
Bridge Quote
Get a fee quote before bridging cNGN between networks
POST
/
v1
/
api
/
bridge-quote
{
"amount": 100000,
"originNetworkId": "1f2e3d4c-5b6a-7988-9a0b-c1d2e3f4a5b6",
"destinationNetworkId": "9b2e6a1f-3c4d-4e5f-8a7b-1c2d3e4f5a6b",
"destinationAddress": "0x8Ba1f109551bD432803012645Ac136ddd64DBA72"
}
curl -X POST "https://api.cngn.co/v1/api/bridge-quote" \
-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": "Swap quote fetched successfully",
"data": {
"amountReceivable": "99750.00",
"networkFee": "150.00",
"bridgeFee": "100.00"
}
}
{
"status": false,
"message": "Permission denied"
}
Returns the amount you would receive and the fees charged for a bridge, before you commit to it with Bridge.
Response (decrypted
Requires the Swap permission. The request body must be encrypted.
Body parameters (plain payload, pre-encryption)
Network ID you are bridging from. See Get Networks.
Response (decrypted data)
cNGN bridging service fee, in naira. How it is worked out depends on your account’s
bridge pricing:
- Percentage: a share of
amount, never more than your account’s fee cap. For example, 0.3% of ₦100,000 is ₦300, or less if your cap is lower. - Flat: the same fixed amount on every bridge, whatever its size, and never more
than
amount.
{
"amount": 100000,
"originNetworkId": "1f2e3d4c-5b6a-7988-9a0b-c1d2e3f4a5b6",
"destinationNetworkId": "9b2e6a1f-3c4d-4e5f-8a7b-1c2d3e4f5a6b",
"destinationAddress": "0x8Ba1f109551bD432803012645Ac136ddd64DBA72"
}
curl -X POST "https://api.cngn.co/v1/api/bridge-quote" \
-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": "Swap quote fetched successfully",
"data": {
"amountReceivable": "99750.00",
"networkFee": "150.00",
"bridgeFee": "100.00"
}
}
{
"status": false,
"message": "Permission denied"
}