> ## Documentation Index
> Fetch the complete documentation index at: https://cosmos-docs-cosmjs-docs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Querying

> Read-only queries on EVM-compatible Cosmos chains with CosmJS.

Read-only queries work identically to standard chains. The account parser in
`StargateClient` automatically handles EVM public key types:

```typescript theme={"system"}
import { StargateClient } from "@cosmjs/stargate";

const client = await StargateClient.connect("http://localhost:26661");

const account = await client.getAccount("cosmos1...");
// account.pubkey will have type "os/PubKeyEthSecp256k1" for EVM accounts

const balance = await client.getBalance("cosmos1...", "atest");
```
