> For the complete documentation index, see [llms.txt](https://docs.agilefi.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.agilefi.org/agile.js/utility-methods/get-network-name-with-chain-id.md).

# Get Network Name With Chain ID

Gets the name of an BSC network based on its chain ID.

* `chainId` (string) The chain ID of the network.
* `RETURN` (string) Returns the name of the Ethereum network.

```
console.log('Testnet : ', Agile.util.getNetNameWithChainId(3));
```
