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

# List Networks

> List all supported blockchain networks

# List Networks

Returns all blockchain networks supported by Legend.

## Request

```
GET /networks
```

No parameters required.

## Examples

<CodeGroup>
  ```bash cURL theme={null}
  curl https://prime-api.legend.xyz/networks \
    -H "Authorization: Bearer $LEGEND_QUERY_KEY"
  ```

  ```typescript TypeScript theme={null}
  const { networks } = await client.networks();
  ```

  ```python Python theme={null}
  result = await client.networks()
  networks = result["networks"]
  ```

  ```rust Rust theme={null}
  let networks = client.networks().await?;
  ```
</CodeGroup>

```json Response theme={null}
{
  "networks": [
    { "name": "mainnet", "chain_id": 1, "display_name": "Ethereum" },
    { "name": "base", "chain_id": 8453, "display_name": "Base" },
    { "name": "arbitrum", "chain_id": 42161, "display_name": "Arbitrum" },
    { "name": "optimism", "chain_id": 10, "display_name": "Optimism" },
    { "name": "polygon", "chain_id": 137, "display_name": "Polygon" }
  ]
}
```

### Response fields

| Field                     | Type    | Description                                   |
| ------------------------- | ------- | --------------------------------------------- |
| `networks`                | array   | List of network objects                       |
| `networks[].name`         | string  | Network identifier (use this in API requests) |
| `networks[].chain_id`     | integer | EVM chain ID                                  |
| `networks[].display_name` | string  | Human-readable network name                   |
