How to Access Cosmos via Tendermint REST API
Step 1: To access Cosmos Tendermint REST, use the native access endpoint with tendermint-rest
at the end:
- Network: Cosmos Mainnet
- Request Type: GET
https://svc.blockdaemon.com/cosmos/mainnet/native/tendermint-rest
Step 2: Authenticate your request using your API key. You can include the API key using either of the following headers:
Authorization: Bearer YOUR_API_KEY
X-API-Key: YOUR_API_KEY
Step 3: Specify a Tendermint method at the end of the query:
https://svc.blockdaemon.com/cosmos/mainnet/native/tendermint-rest/YOUR_METHOD
Example Request
Here is a cURL example for using health
to get a node heartbeat for Cosmos Mainnet:
curl -X GET \
https://svc.blockdaemon.com/cosmos/mainnet/native/tendermint-rest/health \
-H 'Authorization: Bearer YOUR_API_KEY' \
The following is a typical response you will get:
{
"jsonrpc": "2.0",
"id": "2023",
"result": {}
}
👋 Need Help?
Contact us through email or our support page for any issues, bugs, or assistance you may need.
Updated 25 days ago