Learn how to access Cosmos via 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: You should authorize your request. Learn more: Authentication Guide
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.