How to Access Cosmos REST API
Step 1: To access Cosmos REST, use the native access endpoint with cosmos-rest
at the end:
- Network: Cosmos Mainnet
- Request Type: GET
https://svc.blockdaemon.com/cosmos/mainnet/native/cosmos-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 Cosmos method at the end of the query:
https://svc.blockdaemon.com/cosmos/mainnet/native/cosmos-rest/YOUR_METHOD
Example Request
Here is a cURL example for using params
to query all parameters in Cosmos Mainnet:
curl -X GET\
https://svc.blockdaemon.com/cosmos/mainnet/native/cosmos-rest/cosmos/auth/v1beta1/params
-H 'Authorization: Bearer YOUR_API_KEY' \
The following is a typical response you will get:
{
"params": {
"max_memo_characters": "512",
"tx_sig_limit": "7",
"tx_size_cost_per_byte": "10",
"sig_verify_cost_ed25519": "590",
"sig_verify_cost_secp256k1": "1000"
}
}
👋 Need Help?
Contact us through email or our support page for any issues, bugs, or assistance you may need.
Updated 25 days ago