Using our endpoints
How the public RPC, REST, gRPC and WebSocket endpoints work, and what happens when one is down.
Each network page has an Endpoints section listing the public endpoints we run, with a status check done from your browser.
Endpoint types#
- RPC (Tendermint / CometBFT): node status, blocks, transaction broadcast and state sync.
- REST (also called LCD or API): query chain state such as balances and validators.
- gRPC: for programmatic clients.
- WebSocket: subscribe to new blocks and events.
Example: check the latest block height on an RPC endpoint.
curl -s https://rpc.example.net/status | jq -r '.result.sync_info.latest_block_height'Example: list validators on a REST endpoint.
curl -s "https://api.example.net/cosmos/staking/v1beta1/validators?pagination.limit=5"Fair use#
These endpoints are free and shared. Please cache what you can, avoid tight polling loops, and do not run heavy queries such as full-history scans. For production apps, run your own node. The install guide for each network shows how.
When one of our endpoints is down#
If our REST or RPC endpoint does not respond, the network page shows live data from Cosmos Directory instead, with a note on the page saying so. It is a public service that proxies healthy community endpoints for the same chain.
- Mainnets use the Cosmos Directory mainnet service and testnets use its testnet service.
- Cosmos Directory has no gRPC or WebSocket proxy, so those are only listed when we run them.
- If Cosmos Directory is unavailable too, the page says so and links to the chain registry, where you can find other community endpoints.
Peers and seeds#
Persistent peers and seeds for each network are listed on its Endpoints page, with a ready-to-paste config.toml snippet.