---
sidebar_position: 13
---
[//]: # (This file is auto-generated. Please do not modify it yourself.)

# chain_id/1

## Description

`chain_id/1` is a predicate which unifies the given term with the current chain ID. The signature is:

The signature is as follows:

```text
chain_id(?ID)
```

where:

- ID represents the current chain ID at the time of the query.

Deprecated: Use the \`block\_header/1\` predicate instead.
