> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cngn.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Bridge Quote

> Get a fee quote before bridging cNGN between networks

Returns the amount you would receive and the fees charged for a bridge, before you commit to it with [Bridge](/api-reference/bridge).

<Note>
  Requires the **Swap** permission. The request body must be [encrypted](/guides/encryption).
</Note>

### Body parameters (plain payload, pre-encryption)

<ParamField body="amount" type="number" required>
  Amount of cNGN you intend to bridge.
</ParamField>

<ParamField body="originNetworkId" type="string" required>
  Network ID you are bridging **from**. See [Get Networks](/api-reference/get-networks).
</ParamField>

<ParamField body="destinationNetworkId" type="string" required>
  Network ID you are bridging **to**.
</ParamField>

<ParamField body="destinationAddress" type="string" required>
  Wallet address that would receive cNGN on the destination network.
</ParamField>

### Response (decrypted `data`)

<ResponseField name="amountReceivable" type="string">
  Amount of cNGN that will arrive at the destination after fees.
</ResponseField>

<ResponseField name="networkFee" type="string">
  On-chain network fee for the bridge.
</ResponseField>

<ResponseField name="bridgeFee" type="string">
  cNGN bridging service fee.
</ResponseField>

<RequestExample>
  ```json Plain body (encrypt before sending) theme={null}
  {
    "amount": 100000,
    "originNetworkId": "1f2e3d4c-5b6a-7988-9a0b-c1d2e3f4a5b6",
    "destinationNetworkId": "9b2e6a1f-3c4d-4e5f-8a7b-1c2d3e4f5a6b",
    "destinationAddress": "0x8Ba1f109551bD432803012645Ac136ddd64DBA72"
  }
  ```

  ```bash cURL (wire format) theme={null}
  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>"
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 - Success (data shown decrypted) theme={null}
  {
    "status": 200,
    "message": "Swap quote fetched successfully",
    "data": {
      "amountReceivable": "99750.00",
      "networkFee": "150.00",
      "bridgeFee": "100.00"
    }
  }
  ```

  ```json 403 - Permission denied theme={null}
  {
    "status": false,
    "message": "Permission denied"
  }
  ```
</ResponseExample>
