Skip to content

Cosmos REST / RPC

For staking, governance, validators, IBC, and module queries — anything that's a Cosmos SDK concept rather than an EVM concept — use these.

EndpointMainnetTestnet
CometBFT RPChttps://rpc.sanect.com/rpchttps://rpc.testnet.sanect.com/rpc
REST (LCD / gRPC-gateway)https://rpc.sanect.com/resthttps://rpc.testnet.sanect.com/rest

CometBFT RPC (the chain, not the modules)

Used for status, blocks, txs, validators, mempool, network info.

bash
# Mainnet examples (replace with testnet URL for testnet)

# Where are we?
curl -s https://rpc.sanect.com/rpc/status \
  | jq '.result.sync_info'

# Latest committed block
curl -s https://rpc.sanect.com/rpc/block

# A specific height
curl -s "https://rpc.sanect.com/rpc/block?height=12345"

# Active CometBFT validator set
curl -s https://rpc.sanect.com/rpc/validators \
  | jq '.result.validators | length'   # active count

Full method list: any CometBFT RPC method works (tx_search, block_search, consensus_state, net_info, …).

REST (cosmos-sdk modules over gRPC-gateway)

All module queries are at /rest/cosmos/<module>/v1beta1/....

bash
# Mainnet examples (replace with testnet URL for testnet)

# Staking params (max validators, bond denom, etc.)
curl -s https://rpc.sanect.com/rest/cosmos/staking/v1beta1/params

# Active validators
curl -s 'https://rpc.sanect.com/rest/cosmos/staking/v1beta1/validators?status=BOND_STATUS_BONDED'

# Total supply
curl -s https://rpc.sanect.com/rest/cosmos/bank/v1beta1/supply

# Bonded pool
curl -s https://rpc.sanect.com/rest/cosmos/staking/v1beta1/pool

# Latest block via REST (used by ping.pub / Cosmos explorers)
curl -s https://rpc.sanect.com/rest/cosmos/base/tendermint/v1beta1/blocks/latest

# Governance proposals
curl -s 'https://rpc.sanect.com/rest/cosmos/gov/v1/proposals?proposal_status=2'

Every Cosmos SDK module that's enabled in genesis (see Network parameters §"Genesis modules enabled") exposes its full REST surface here.

EVM-specific Cosmos endpoints

cosmos/evm registers two extra modules with their own REST:

bash
# EVM module params (chain id, evm denom, access control)
curl -s https://rpc.sanect.com/rest/cosmos/evm/vm/v1/params

# ERC-20 ↔ bank pairs
curl -s https://rpc.sanect.com/rest/cosmos/evm/erc20/v1/token_pairs

# Fee market (EIP-1559)
curl -s https://rpc.sanect.com/rest/cosmos/evm/feemarket/v1/params
curl -s https://rpc.sanect.com/rest/cosmos/evm/feemarket/v1/base_fee

CORS

Caddy in front of the node sets exactly one Access-Control-Allow-Origin: * on every response. Browser-based dApps and explorers can fetch directly from these URLs without a proxy.

See also