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