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 chainsPoS 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.
SCOPE: COMETBFT RPC ONLY — REST / LCD IS A SEPARATE PRODUCT
GetBlock exposes three distinct APIs for Cosmos Hub:
CometBFT JSON-RPC (this documentation)
Cosmos REST / LCD (HTTP GET to paths like
/cosmos/bank/v1beta1/balances/{address}),CometBFT WebSocket (for event subscriptions).
This package documents only the CometBFT RPC and WebSocket. The Cosmos REST API is a separate, very large surface auto-generated from each Cosmos SDK module's gRPC services (cosmos.bank, cosmos.staking, cosmos.gov, cosmos.distribution, etc.) and deserves its own dedicated documentation package. To browse REST endpoints today, use the official Cosmos REST API reference.
Network Information
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...)
Block Explorer
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
methodfield 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 forsubscribe/unsubscribe/unsubscribe_all.
Supported Networks
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).
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
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
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
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
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
unconfirmed_txs
Returns transactions in the mempool
num_unconfirmed_txs
Returns the count and size of transactions in the mempool
ABCI Application Queries
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
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:
Support Email: support@getblock.io
See Also
Cosmos REST API Reference — separate API surface, not covered in this package
Last updated
Was this helpful?