Bridge cNGN
Bridge
POST
https://api.cngn.co/v1/api/swap
This endpoint allows you to bridge or move your cNGN between blockchains that cNGN is supported
Headers
Name
Value
Content-Type
application/json
Authorization
Bearer <token>
Body
Name
Type
Description
destinationAddress
string
Destination Wallet Address
originNetwork
string
Network you are swapping from
callbackUrl
string
OPTIONAL. A call Back URL to notify you if swap is successful
senderAddress
string
OPTIONAL. Wallet Address where the fund will be sent from. If you are sending from an already existing whitelisted address, this field is optional
Response
{
"status": 200,
"message": "Swap successfully",
"data": "<encrypted response>"
}
Decrypted Response
{
"status": 200,
"message": "Transaction fetched successfully",
"data": {
"receivableAddress": "0xb68459978a9FBD3BB3e45ed5972479c0f7711fe5",
"transactionId": "c46a5f10-de39-4afb-b539-ed5b134a0fcd",
"reference": "REF456198239930"
}
}
Last updated