> ## 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.

# Get Networks

> List the blockchain networks cNGN currently supports

Returns the networks available for withdrawals, bridging, and address whitelisting. Use the returned `id` as `networkId` in other endpoints.

<Note>
  Network IDs differ between test and live environments. Resolve them per environment; never hard-code them.
</Note>

### Query parameters

<ParamField query="includeBlockchain" type="boolean" default="false">
  When `true`, includes underlying blockchain metadata for each network.
</ParamField>

### Response (decrypted `data`)

<ResponseField name="data" type="object[]">
  <Expandable title="Network object">
    <ResponseField name="id" type="string">Network ID. Pass this as `networkId` elsewhere.</ResponseField>
    <ResponseField name="name" type="string">Full network name.</ResponseField>
    <ResponseField name="short_name" type="string">Short code (e.g. `BASE`, `BSC`).</ResponseField>
    <ResponseField name="isDisabled" type="boolean">Disabled networks cannot be used for transfers.</ResponseField>
    <ResponseField name="blockchain" type="object | null">Blockchain metadata when `includeBlockchain=true`.</ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET "https://api.cngn.co/v1/api/networks" \
    -H "Authorization: Bearer YOUR_API_KEY"
  ```

  ```typescript TypeScript theme={null}
  const res = await fetch("https://api.cngn.co/v1/api/networks", {
    headers: { Authorization: `Bearer ${API_KEY}` },
  });
  ```

  ```python Python theme={null}
  res = requests.get(
      "https://api.cngn.co/v1/api/networks",
      headers={"Authorization": f"Bearer {API_KEY}"},
  )
  ```
</RequestExample>

<ResponseExample>
  ```json 200 - Success (data shown decrypted) theme={null}
  {
    "status": 200,
    "message": "Supported networks fetched successfully",
    "data": [
      {
        "id": "9b2e6a1f-3c4d-4e5f-8a7b-1c2d3e4f5a6b",
        "name": "Base",
        "short_name": "BASE",
        "isDisabled": false,
        "blockchain": null
      },
      {
        "id": "1f2e3d4c-5b6a-7988-9a0b-c1d2e3f4a5b6",
        "name": "Polygon",
        "short_name": "POLYGON",
        "isDisabled": false,
        "blockchain": null
      }
    ]
  }
  ```
</ResponseExample>
