> For the complete documentation index, see [llms.txt](https://tutorial.neoline.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tutorial.neoline.io/reference/json-rpc-api/eth_chainid.md).

# eth\_chainId

Returns the chain ID of the current network.

## Params&#x20;

None.

## Result

string&#x20;

Match pattern: ^0x(\[1-9a-f]+\[0-9a-f]\*|0)$

### Request

```javascript
await window.NEOLineNeoX.request({
  "method": "eth_chainId",
  "params": []
});
```

### Result

```javascript
0xba93
```
