For the complete documentation index, see llms.txt. This page is also available as Markdown.

Cosmos

GetBlock provides fast and reliable access to Cosmos nodes via JSON-RPC API. Connect to the Cosmos network without running your own infrastructure.

Cosmos Hub is the flagship blockchain of the Cosmos ecosystem — the "Internet of Blockchains" — and the original implementation of the Cosmos SDK and CometBFT (formerly Tendermint Core) consensus engine.

Launched in March 2019 by the Interchain Foundation following the Cosmos whitepaper, the network pioneered application-specific Layer 1 design and the Inter-Blockchain Communication protocol (IBC), which today connects 100+ sovereign chains.

The Hub itself secures Interchain Security (replicated security for consumer chains), hosts the ATOM token, and serves as the economic and governance center of the broader Cosmos network. Under the hood, Cosmos Hub runs the CometBFT consensus engine — a deterministic, Byzantine fault-tolerant state-machine replication engine — which exposes a well-defined RPC surface that this documentation covers.

Key Features

  • CometBFT Consensus: Deterministic instant finality (one block = final) via Tendermint-style BFT consensus — no fork choice, no probabilistic confirmation windows

  • Cosmos SDK Architecture: Modular blockchain framework built around specialized modules (bank, staking, gov, distribution, slashing, ibc)

  • Inter-Blockchain Communication (IBC): First-class native interoperability with 100+ Cosmos ecosystem chains

  • Interchain Security: The Hub leases its validator set to consumer chains, providing replicated security as a service

  • ATOM Token: Native staking, governance, and IBC fee asset (uatom — 6 decimals)

  • Bech32 Addresses: Human-readable cosmos1... addresses, with chain-specific prefixes for IBC-connected chains

  • PoS Validator Set: ~180 active validators secure the network with delegated proof-of-stake

  • 6-Second Block Time: Predictable ~6s block production with single-slot finality

  • Liquid Staking: Native support for liquid-staked ATOM derivatives (stATOM, stkATOM) via IBC-connected liquid staking chains

  • Governance On-Chain: ATOM holders vote on protocol upgrades, parameter changes, and community spend proposals

TECHNICAL DISCLAIMER: AUTHORITATIVE COMETBFT RPC SPECIFICATION

GetBlock’s Cosmos Hub API reference documentation is provided exclusively for informational purposes and to optimize the developer experience. The canonical and normative specification for the CometBFT RPC interface is maintained by the CometBFT team and published at docs.cometbft.com/main/spec/rpc, with upstream source at github.com/cometbft/cometbft. For Cosmos SDK protocol details, module specifications, and the IBC protocol, consult the official Cosmos documentation.

Network Information

Property
Value

Network Name

Cosmos Hub Mainnet

Chain ID

cosmoshub-4

Native Currency

ATOM

Denomination

uatom (1 ATOM = 1,000,000 uatom — 6 decimals)

Block Time

~6 seconds

Consensus

CometBFT (Byzantine fault-tolerant; instant finality)

Active Validators

~180

Address Format

Bech32 cosmos1... (validator: cosmosvaloper1...)

Base URL

CometBFT supports three transports for the same methods:

  • JSON-RPC over HTTP (POST) — sends a JSON-RPC 2.0 body to the base URL with the method field selecting the operation. Default in this documentation.

  • URI over HTTP (GET) — appends the method name as a path segment (e.g. /status, /block?height=12345). Useful for browser debugging and one-off cURL calls. Most pages include a GET variant in the cURL tab where applicable.

  • JSON-RPC over WebSocket — for real-time event subscriptions at wss://go.getblock.io/<ACCESS-TOKEN>/websocket. Used for subscribe / unsubscribe / unsubscribe_all.

Supported Networks

Network
JSON-RPC
WSS
URI (GET)
Frankfurt, Germany

Mainnet

Quickstart

In this section, you will learn how to make your first call with either:

  • Axios (JavaScript / Node.js)

  • Python (Requests library)

Before you begin, you must have already installed npm or yarn on your local machine (for the Axios example) or Python and pip (for the Python example).

1

Setup project

2

Install Axios

3

Create file

Create a new file named index.js. This is where you will make your first call.

4

Set ES module type

Set the ES module "type": "module" in your package.json.

5

Add code

Replace <ACCESS-TOKEN> with your actual GetBlock access token.

6

Run the script

Expected output (truncated):

network: "cosmoshub-4" and catching_up: false confirm you are connected to a synced Cosmos Hub mainnet node.

Available API Methods

CometBFT exposes ~24 RPC methods covering node info, block/chain data, transaction handling, mempool, ABCI queries, and event subscriptions.

Node Info & Health

Method
Description

health

Returns empty result if the node is healthy; otherwise an error

status

Returns node info, pubkey, latest block hash, app hash, block height/time

net_info

Returns network info (peers, listeners, p2p stats)

Blocks & Chain

Method
Description

blockchain

Returns block metadata for a range of blocks

block

Returns block at a specific height

block_by_hash

Returns a block by its hash

block_results

Returns the results of all transactions in a block

commit

Returns the commit (signatures) for a block

header

Returns a block header at a specific height

header_by_hash

Returns a block header by its hash

Consensus & Validators

Method
Description

validators

Returns the validator set at a specific height

consensus_state

Returns the current consensus state

dump_consensus_state

Returns the full consensus state (validators, votes, peers)

consensus_params

Returns consensus parameters at a specific height

genesis

Returns the genesis document (small chains only)

genesis_chunked

Returns the genesis document in chunks (for large chains like Cosmos Hub)

Transactions

Method
Description

tx

Returns a transaction by hash, with optional inclusion proof

tx_search

Searches transactions by event-attribute query

block_search

Searches blocks by event-attribute query

broadcast_tx_sync

Broadcasts a transaction and returns after CheckTx (synchronous)

broadcast_tx_async

Broadcasts a transaction and returns immediately (asynchronous)

broadcast_tx_commit

Broadcasts a transaction and waits until it is committed in a block

check_tx

Runs a CheckTx against the application without broadcasting

Mempool

Method
Description

unconfirmed_txs

Returns transactions in the mempool

num_unconfirmed_txs

Returns the count and size of transactions in the mempool

ABCI Application Queries

Method
Description

abci_info

Returns information about the ABCI application

abci_query

Runs an ABCI query against the application (used by Cosmos SDK gRPC layer)

WebSocket Subscriptions

Method
Description

subscribe

Subscribes to events matching a Tendermint event query

unsubscribe

Cancels a specific subscription

unsubscribe_all

Cancels all subscriptions on the connection

Support

For technical support and questions:

See Also

Last updated

Was this helpful?