JSON-RPC methods supported on Cosmos Mainnet and Cosmos Testnet through Tatum RPC Gateway, with base URLs and an example request.
Call Cosmos JSON-RPC methods through Tatum RPC Gateway. Send an HTTP POST request with a JSON-RPC 2.0 body to the network's base URL, with your API key in the x-api-key header. See Authentication.
Base URLs
| Network | Base URL |
|---|---|
| Cosmos Mainnet | https://cosmos-mainnet.gateway.tatum.io/tendermint |
| Cosmos Testnet | https://cosmos-testnet.gateway.tatum.io/tendermint |
Example request
curl 'https://cosmos-mainnet.gateway.tatum.io/tendermint' \
--header 'content-type: application/json' \
--header 'x-api-key: {YOUR_API_KEY}' \
--data '{"jsonrpc":"2.0","method":"status","params":[],"id":1}'Methods
22 methods. Parameters and responses are described in the CometBFT RPC specification.
| Method | Description |
|---|---|
abci_info | Returns information about the application. |
abci_query | Queries the application for data at a given path. |
block | Returns the block at a given height, or the latest block. |
block_results | Returns the results of the transactions and events in the block at a given height. |
blockchain | Returns block metadata for a range of heights. |
broadcast_tx_async | Submits a transaction and returns immediately, without waiting for CheckTx. |
broadcast_tx_commit | Submits a transaction and waits until it is committed in a block. |
broadcast_tx_sync | Submits a transaction and returns the result of CheckTx. |
commit | Returns the signed header (commit) at a given height. |
consensus_params | Returns the consensus parameters at a given height. |
consensus_state | Returns a summary of the current consensus state. |
dump_consensus_state | Returns the full consensus state, including the state of each peer. |
genesis | Returns the genesis document. |
genesis_chunked | Returns the genesis document in base64-encoded chunks. |
health | Returns an empty result if the node is running. |
net_info | Returns network information, including the node's peers. |
num_unconfirmed_txs | Returns the number of unconfirmed transactions in the mempool. |
status | Returns the node status, including sync info and the latest block. |
tx | Returns a transaction by its hash. |
tx_search | Searches transactions by event query. |
unconfirmed_txs | Lists unconfirmed transactions in the mempool. |
validators | Returns the validator set at a given height. |
The gateway lists its supported methods at runtime:
Method unavailable?If you need a method we don't support yet, contact support.