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

# Get chain ID

> Get the chain identifier.

`GET /chainid`

```python theme={null}
r = requests.get(rpc_url + "/chainid")
print(r.json())
```

## Response

```json theme={null}
{
  "chainid": 1
}
```

Use this value for the `chainid` field of your transaction.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.