> For the complete documentation index, see [llms.txt](https://wallet-docs.broearn.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wallet-docs.broearn.com/ethereum-and-evm/provider-api-reference/properties/eth_chainid.md).

# eth\_chainId

## window\.bw\.eth.chainId

The chainId of the network you are currently connected to, returned as a hexadecimal string.

```javascript
const chainId = window.bw.eth.chainId;
console.log(chainId);
// "0x1"
// hexidecimal representation of Ethereum Mainnet
```
