> For the complete documentation index, see [llms.txt](https://jungle-toolkit.gitbook.io/evm-xcm-jungle-toolkit/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jungle-toolkit.gitbook.io/evm-xcm-jungle-toolkit/build-an-evm+substrate-wallet-compatible-architecture-in-your-dapp/the-evm-address-standard/get-the-chain-information-for-a-signer.md).

# Get the chain information for a Signer

Learn how to use ethers to query some basic EVM-network information

## Check the network information using ethers.js

```javascript
const { ethers } = require('ethers');

async function getNetworkInfo() {
  // Create a provider
  const provider = new ethers.providers.JsonRpcProvider(`https://moonbeam.unitedbloc.com`);

  // Get network information
  const network = await provider.getNetwork();

  console.log('Network Name:', network.name);
  console.log('Chain ID:', network.chainId);
  console.log('Block Explorer URL:', network.blockExplorer);
}

getNetworkInfo();

```

In this example, we use a Moonbeam `provider`.  If you use a browser-injected provider, you'll receive the information about the current connected network.
