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
  • Get Transaction History
  • Decrypted Response:
  1. Integrations
  2. Endpoints

Transaction History

Get Transaction History

GET /transactions?page={page}&limit={limit}

<Description of the endpoint>

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <apiKey>

Response

{
  "status": 200,
  "message": "Transactions fetched successfully",
  "data": "<encrypted data>"
}
{
    "status": 400, 
    "message": "Bad Request Error"
}

Decrypted Response:

{
  "status": 200,
  "message": "Transactions fetched successfully",
  "data": {
    "data": [
      {
        "id": "df645ca6-0d0f-4a95-950a-a2bf8c3523f1",
        "from": "Azawire Africa",
        "receiver": { "address": "0xb68459978a9FBD3BB3e45ed5972479c0f7711fe5" },
        "amount": "0",
        "description": "cNGN token swap",
        "createdAt": "2025-01-24T19:47:35.554Z",
        "trx_ref": "f0c7fb6f-ad3c-47ee-aacb-5a87a8d94659",
        "trx_type": "swap",
        "network": "bsc",
        "asset_type": "wrapped",
        "asset_symbol": "CNGN",
        "base_trx_hash": null,
        "extl_trx_hash": null,
        "explorer_link": null,
        "status": "pending"
      },
      {
        "id": "51439d02-6501-4bd1-99a2-c817d9e6b457",
        "from": "Azawire Africa",
        "receiver": { "address": "0xb68459978a9FBD3BB3e45ed5972479c0f7711fe5" },
        "amount": "0",
        "description": "cNGN token swap",
        "createdAt": "2025-01-24T19:41:12.181Z",
        "trx_ref": "aec7b5ed-d319-40c6-a7f8-b6e24f9039b9",
        "trx_type": "swap",
        "network": "bsc",
        "asset_type": "wrapped",
        "asset_symbol": "CNGN",
        "base_trx_hash": null,
        "extl_trx_hash": null,
        "explorer_link": null,
        "status": "pending"
      },
      {
        "id": "0912ada7-91e5-4415-8516-2063bfb51a16",
        "from": "Azawire Africa",
        "receiver": { "address": "0xb68459978a9FBD3BB3e45ed5972479c0f7711fe5" },
        "amount": "0",
        "description": "cNGN token swap",
        "createdAt": "2025-01-24T19:40:29.421Z",
        "trx_ref": "79d199f1-e8fc-492b-a89b-cf6caa6a5f60",
        "trx_type": "swap",
        "network": "bsc",
        "asset_type": "wrapped",
        "asset_symbol": "CNGN",
        "base_trx_hash": null,
        "extl_trx_hash": null,
        "explorer_link": null,
        "status": "pending"
      },
      {
        "id": "6cdff9a0-fd37-4d7e-bf16-e2570278a6b1",
        "from": "Azawire Africa",
        "receiver": { "address": "0xb68459978a9FBD3BB3e45ed5972479c0f7711fe5" },
        "amount": "0",
        "description": "cNGN token swap",
        "createdAt": "2025-01-24T19:40:12.280Z",
        "trx_ref": "35ddf384-4e52-4ce5-bab7-bd6ace8a08d5",
        "trx_type": "swap",
        "network": "bsc",
        "asset_type": "wrapped",
        "asset_symbol": "CNGN",
        "base_trx_hash": null,
        "extl_trx_hash": null,
        "explorer_link": null,
        "status": "pending"
      },
      {
        "id": "2eb33301-2d1e-4ab7-ae7c-48596451f8e9",
        "from": "Azawire Africa",
        "receiver": {
          "bank": {
            "name": "First Bank of Nigeria",
            "slug": "firstbank",
            "code": "011",
            "country": "NG",
            "nibss_bank_code": "000016"
          },
          "accountNumber": "3092345285"
        },
        "amount": "10",
        "description": "cNGN Redemption",
        "createdAt": "2025-01-24T19:33:22.982Z",
        "trx_ref": "7af54fa0-54fe-4a07-8f91-22a037cbc246",
        "trx_type": "fiat_redeem",
        "network": "xbn",
        "asset_type": "wrapped",
        "asset_symbol": "NGN",
        "base_trx_hash": null,
        "extl_trx_hash": null,
        "explorer_link": null,
        "status": "pending_redeem"
      },
      {
        "id": "c46a5f10-de39-4afb-b539-ed5b134a0fcd",
        "from": "Azawire Africa",
        "receiver": { "address": "0xb68459978a9FBD3BB3e45ed5972479c0f7711fe5" },
        "amount": "100",
        "description": "cNGN Withdrawal",
        "createdAt": "2025-01-24T19:20:51.289Z",
        "trx_ref": "a8b2bc5c-f92c-4d9d-a523-93a0a1c0823b",
        "trx_type": "withdraw",
        "network": "bsc",
        "asset_type": "wrapped",
        "asset_symbol": "NGN",
        "base_trx_hash": "f6753a2e3c18edc9a287df7198724650ce6d3e32747d6294416d3cfa81a549c1",
        "extl_trx_hash": "0xc7036a232cc9db703507ded880998368059671ede92789e282cfca7d1566ddbd",
        "explorer_link": "https://testnet.bscscan.com/tx/0xc7036a232cc9db703507ded880998368059671ede92789e282cfca7d1566ddbd",
        "status": "completed"
      },
      {
        "id": "490247ef-8f52-4ec9-b8de-a4a52dcb2a52",
        "from": "Azawire Africa",
        "receiver": { "address": "9e38bcc4-d1c1-4158-bb70-b0f773fbd212" },
        "amount": "500000000",
        "description": "Fiat test Deposit",
        "createdAt": "2025-01-24T15:02:56.319Z",
        "trx_ref": "a90c7caa-1092-4a66-8bb4-23a062653a5e",
        "trx_type": "fiat_buy",
        "network": "xbn",
        "asset_type": "fiat",
        "asset_symbol": "NGN",
        "base_trx_hash": "6eaa0f510acd6e11bafb10417d0ef35a874cc5fa7c8ccf6187e0d2a1f2f3d146",
        "extl_trx_hash": null,
        "explorer_link": "https://explorer-testnet.bantu.network/tx/6eaa0f510acd6e11bafb10417d0ef35a874cc5fa7c8ccf6187e0d2a1f2f3d146",
        "status": "completed"
      }
    ],
    "pagination": {
      "count": 7,
      "pages": 1,
      "isLastPage": true,
      "nextPage": null,
      "previousPage": null
    }
  }
}
PreviousGet Bank ListNextVirtual Account

Last updated 3 months ago