---
updatedAt: 2025-09-18T22:38:34.000Z
agentTools:
  projectIndex: https://nodereal.readme.io/llms.txt
---

# klay_chainID

Returns the chain ID of the chain.

> 📘 Supported on Klaytn (mainnet) only.

## Parameters

**Request**

None

**Result**

| Type     | Description                           |
| -------- | ------------------------------------- |
| QUANTITY | Integer of the chain ID of the chain. |

## API Endpoint

The format of a Klaytn API endpoint is\
`https://open-platform.nodereal.io/{{apiKey}}/klaytn/`

Here is an example:\
`https://open-platform.nodereal.io/4c0a1c23661a4e26bcbcwed461e34ea9/klaytn/`

## Example

```shell
// Request
curl https://open-platform.nodereal.io/{{apiKey}}/klaytn/ \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"jsonrpc":"2.0","method":"klay_chainID","id":1}' 

// Result
{
    "jsonrpc":"2.0",
    "id":1,
    "result":"0x7e2"
}
```