cNGN documentation
  • Introduction
    • Overview
      • Use Cases
      • Definitions
      • Brand Assets
    • Going Live checklist
  • Getting Started
    • Security
      • Generating SSH keys
      • Generating API Keys
      • Encrypting / Decrypting Request
  • Integrations
    • Contract Address
    • Networks Enum
    • Authorization
    • Endpoints
      • Get Balance
      • Get Bank List
      • Transaction History
      • Virtual Account
      • Redeem Assets
      • Withdraw cNGN
      • Verify Withdrawal
      • Bridge cNGN
      • Whitelist Address
  • Libraries/SDKs
    • Backend Libraries
      • cNGN PHP Library
      • cNGN Python Library
      • cNGN Nodejs Library
      • cNGN Java Library
    • Frontend SDKs/Widget
Powered by GitBook
On this page
  1. Integrations
  2. Endpoints

Bridge cNGN

Bridge

POST /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

destinationNetwork

string

destinationAddress

string

Desstination Wallet Address

originNetwork

string

Network you are swapping from

callbackUrl

string

A call Back URL to notify you if swap is successful

Response

{
  "status": 200,
  "message": "Swap successfully",
  "data": "<encrypted response>"
}
{
  "error": "Invalid request"
}

Decrypted Response

{
  "status": 200,
  "message": "Transaction fetched successfully",
  "data": {
    "receivableAddress": "0xb68459978a9FBD3BB3e45ed5972479c0f7711fe5",
    "transactionId": "c46a5f10-de39-4afb-b539-ed5b134a0fcd",
    "reference": "REF456198239930"
  }
}
PreviousVerify WithdrawalNextWhitelist Address

Last updated 2 months ago

Destination Network you are swapping to; see

Network Enum