> For the complete documentation index, see [llms.txt](https://docs.dragonswap.app/dragonswap/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dragonswap.app/dragonswap/resources/developer-resources/smart-contracts/dragonswapv2/periphery/libraries/chainid.md).

# ChainId

### Functions[​](https://docs.uniswap.org/contracts/v3/reference/periphery/libraries/ChainId#functions) <a href="#functions" id="functions"></a>

#### get[​](https://docs.uniswap.org/contracts/v3/reference/periphery/libraries/ChainId#get) <a href="#get" id="get"></a>

```solidity
  function get(
  ) internal returns (uint256 chainId)
```

Gets the current chain ID

**Return Values:**[**​**](https://docs.uniswap.org/contracts/v3/reference/periphery/libraries/ChainId#return-values)

| Name      | Type    | Description          |
| --------- | ------- | -------------------- |
| `chainId` | uint256 | The current chain ID |
