# Get the chain information for a Signer

## Check the network information using Polkadot API

```javascript
// Import the Polkadot API
import { ApiPromise, WsProvider } from '@polkadot/api';

async function connectAndFetchChainInfo() {
  // Create a connection to the Polkadot network via websocket
  const polkadotWsProvider = new WsProvider('wss://rpc.polkadot.io');
  // Create a new instance of the Polkadot API
  const polkadotApi = await ApiPromise.create({ provider: polkadotWsProvider });
  // Retrieve information about the Polkadot chain
  const polkadotChainInfo = await polkadotApi.registry.getChainProperties();

  console.log(polkadotChainInfo);
  // For Polkadot, this would print
  // {ss58Format: 0, tokenDecimals: [10], tokenSymbol: [DOT]}
}

connectAndFetchChainInfo().catch(console.error).finally(() => process.exit());
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://jungle-toolkit.gitbook.io/evm-xcm-jungle-toolkit/build-an-evm+substrate-wallet-compatible-architecture-in-your-dapp/the-substrate-address-standard/get-the-chain-information-for-a-signer.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
