gRPC-REST API
Supported methods for Alchemy Crypto.org gRPC-REST API.
Here you will find a list of all the methods Alchemy supports for Crypto.org's gRPC API.
There might be methods supported by Crypto.org nodes but not by Alchemy. See the full list of gRPC-REST API methods on the official documentation.
Syncing state of node. Get if the node is currently syncing with other nodes
none
Node syncing status
Request
curl https://cro-croeseid.alchemyapi.io/your-api-key/cosmos-rest/syncing
Result
{
"syncing": true
}
Get the latest block.
none
The latest block.
Request
curl https://cro-croeseid.alchemyapi.io/your-api-key/cosmos-rest/blocks/latest
Result
{
"block_meta": {
"header": {
"chain_id": "cosmoshub-2",
"height": 1,
"time": "2017-12-30T05:53:09.287+01:00",
"num_txs": 0,
"last_block_id": {
"hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
"parts": {
"total": 0,
"hash": "EE5F3404034C524501629B56E0DDC38FAD651F04"
}
},
"total_txs": 35,
"last_commit_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
"data_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
"validators_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
"next_validators_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
"consensus_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
"app_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
"last_results_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
"evidence_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
"proposer_address": "cosmos1depk54cuajgkzea6zpgkq36tnjwdzv4afc3d27",
"version": {
"block": 10,
"app": 0
}
},
"block_id": {
"hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
"parts": {
"total": 0,
"hash": "EE5F3404034C524501629B56E0DDC38FAD651F04"
}
}
},
"block": {
"header": {
"chain_id": "cosmoshub-2",
"height": 1,
"time": "2017-12-30T05:53:09.287+01:00",
"num_txs": 0,
"last_block_id": {
"hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
"parts": {
"total": 0,
"hash": "EE5F3404034C524501629B56E0DDC38FAD651F04"
}
},
"total_txs": 35,
"last_commit_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
"data_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
"validators_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
"next_validators_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
"consensus_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
"app_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
"last_results_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
"evidence_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
"proposer_address": "cosmos1depk54cuajgkzea6zpgkq36tnjwdzv4afc3d27",
"version": {
"block": 10,
"app": 0
}
},
"txs": [
"string"
],
"evidence": [
"string"
],
"last_commit": {
"block_id": {
"hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
"parts": {
"total": 0,
"hash": "EE5F3404034C524501629B56E0DDC38FAD651F04"
}
},
"precommits": [
{
"validator_address": "string",
"validator_index": "0",
"height": "0",
"round": "0",
"timestamp": "2017-12-30T05:53:09.287+01:00",
"type": 2,
"block_id": {
"hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
"parts": {
"total": 0,
"hash": "EE5F3404034C524501629B56E0DDC38FAD651F04"
}
},
"signature": "7uTC74QlknqYWEwg7Vn6M8Om7FuZ0EO4bjvuj6rwH1mTUJrRuMMZvAAqT9VjNgP0RA/TDp6u/92AqrZfXJSpBQ=="
}
]
}
}
}
Get a block at a certain height.
height
- integer, required block height
none
Request
curl https://cro-croeseid.alchemyapi.io/your-api-key/cosmos-rest/blocks/1
Result
{
"block_meta": {
"header": {
"chain_id": "cosmoshub-2",
"height": 1,
"time": "2017-12-30T05:53:09.287+01:00",
"num_txs": 0,
"last_block_id": {
"hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
"parts": {
"total": 0,
"hash": "EE5F3404034C524501629B56E0DDC38FAD651F04"
}
},
"total_txs": 35,
"last_commit_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
"data_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
"validators_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
"next_validators_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
"consensus_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
"app_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
"last_results_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
"evidence_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
"proposer_address": "cosmos1depk54cuajgkzea6zpgkq36tnjwdzv4afc3d27",
"version": {
"block": 10,
"app": 0
}
},
"block_id": {
"hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
"parts": {
"total": 0,
"hash": "EE5F3404034C524501629B56E0DDC38FAD651F04"
}
}
},
"block": {
"header": {
"chain_id": "cosmoshub-2",
"height": 1,
"time": "2017-12-30T05:53:09.287+01:00",
"num_txs": 0,
"last_block_id": {
"hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
"parts": {
"total": 0,
"hash": "EE5F3404034C524501629B56E0DDC38FAD651F04"
}
},
"total_txs": 35,
"last_commit_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
"data_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
"validators_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
"next_validators_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
"consensus_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
"app_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
"last_results_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
"evidence_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
"proposer_address": "cosmos1depk54cuajgkzea6zpgkq36tnjwdzv4afc3d27",
"version": {
"block": 10,
"app": 0
}
},
"txs": [
"string"
],
"evidence": [
"string"
],
"last_commit": {
"block_id": {
"hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
"parts": {
"total": 0,
"hash": "EE5F3404034C524501629B56E0DDC38FAD651F04"
}
},
"precommits": [
{
"validator_address": "string",
"validator_index": "0",
"height": "0",
"round": "0",
"timestamp": "2017-12-30T05:53:09.287+01:00",
"type": 2,
"block_id": {
"hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
"parts": {
"total": 0,
"hash": "EE5F3404034C524501629B56E0DDC38FAD651F04"
}
},
"signature": "7uTC74QlknqYWEwg7Vn6M8Om7FuZ0EO4bjvuj6rwH1mTUJrRuMMZvAAqT9VjNgP0RA/TDp6u/92AqrZfXJSpBQ=="
}
]
}
}
}
Get the latest validator set (latest block height).
none
The validator set at the latest block height
Request
curl https://cro-croeseid.alchemyapi.io/your-api-key/cosmos-rest/validatorsets/latest
Result
{
"block_height": "string",
"validators": [
{
"address": "cosmosvaloper16xyempempp92x9hyzz9wrgf94r6j9h5f2w4n2l",
"pub_key": "cosmosvalconspub1zcjduepq0vu2zgkgk49efa0nqwzndanq5m4c7pa3u4apz4g2r9gspqg6g9cs3k9cuf",
"voting_power": "1000",
"proposer_priority": "1000"
}
]
}
Get the validator set at a certain height.
height
- integer, required block height
The validator set at a specific block height.
Request
curl https://cro-croeseid.alchemyapi.io/your-api-key/cosmos-rest/validatorsets/{height}
Result
{
"block_height": "string",
"validators": [
{
"address": "cosmosvaloper16xyempempp92x9hyzz9wrgf94r6j9h5f2w4n2l",
"pub_key": "cosmosvalconspub1zcjduepq0vu2zgkgk49efa0nqwzndanq5m4c7pa3u4apz4g2r9gspqg6g9cs3k9cuf",
"voting_power": "1000",
"proposer_priority": "1000"
}
]
}
Returns account details based on address.
address
- string, required address to query for
Account details
Request
curl https://cro-croeseid.alchemyapi.io/your-api-key/cosmos-rest/cosmos/auth/v1beta1/accounts/{address}
Result
{
"account": {
"type_url": "string",
"value": "string"
}
}
Query all parameters.
none
Parameters
Request
curl cro-croeseid.alchemyapi.io/your-api-key/grpc-reset/cosmos/auth/v1beta1/params
Result
{
"params": {
"max_memo_characters": "string",
"tx_sig_limit": "string",
"tx_size_cost_per_byte": "string",
"sig_verify_cost_ed25519": "string",
"sig_verify_cost_secp256k1": "string"
}
}
Returns the balance of all coins for a single account.
address
- string, required address to query balances forpagination.key
- string($byte
), value returned inPageResponse.next_key
to begin querying the next page most efficiently. Only one of offset or key should be set.pagination.offset
- string($uint64
), numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of offset or key should be set.pagination.limit
- string($uint64
), total number of results to be returned in the result page. If left empty it will default to a value to be set by each app.pagination.count_total
- boolean, set to true to indicate that the result set should include a count of the total number of items available for pagination in UIs.count_total
is only respected when offset is used, it is ignored when key is set.
Balance of all coins for a single account
Request
curl cro-croeseid.alchemyapi.io/your-api-key/grpc-reset/cosmos/bank/v1beta1/balances/{address}
Result
{
"balances": [
{
"denom": "string",
"amount": "string"
}
],
"pagination": {
"next_key": "string",
"total": "string"
}
}
Return balance of a single coin for a single account.
address
- string, required address to query balances fordenom
- string, required coin denom to query balances for
Balance of the specific coin for a single account.
Request
curl cro-croeseid.alchemyapi.io/your-api-key/grpc-reset/cosmos/bank/v1beta1/balances/{address}/{denom}
Result
{
"balance": {
"denom": "string",
"amount": "string"
}
}
Queries the parameters of x/bank module.
none
Parameters of x/bank module.
Request
curl cro-croeseid.alchemyapi.io/your-api-key/grpc-reset/cosmos/bank/v1beta1/params
Result
{
"params": {
"send_enabled": [
{
"denom": "string",
"enabled": true
}
],
"default_send_enabled": true
}
}
Returns the total supply of all coins.
none
Supply of all coins.
Request
curl cro-croeseid.alchemyapi.io/your-api-key/grpc-reset/cosmos/bank/v1beta1/supply
Result
{
"supply": [
{
"denom": "string",
"amount": "string"
}
]
}
Returns the supply of a single coin.
denom
- string, required denom of the coin to query balances for
Total supply of a single coin.
Request
curl cro-croeseid.alchemyapi.io/your-api-key/grpc-reset/cosmos/bank/v1beta1/supply/{denom}
Result
{
"amount": {
"denom": "string",
"amount": "string"
}
}
Queries the community pool coins.
none
Community pool coins.
Request
curl cro-croeseid.alchemyapi.io/your-api-key/grpc-reset/cosmos/distribution/v1beta1/community_pool
Result
{
"pool": [
{
"denom": "string",
"amount": "string"
}
]
}
Queries the total rewards accrued by each validator.
delegator_address
- string, required delegator address to query for
Rewards from each validator.
Request
curl cro-croeseid.alchemyapi.io/your-api-key/grpc-reset/cosmos/distribution/v1beta1/delegators/{delegator_address}/rewards
Result
{
"rewards": [
{
"validator_address": "string",
"reward": [
{
"denom": "string",
"amount": "string"
}
]
}
],
"total": [
{
"denom": "string",
"amount": "string"
}
]
}
Queries the total rewards accrued by a delegation.
delegator_address
- string, required delegator address to query forvalidator_address
- string, required validator address to query for
Total rewards accrued by a delegation for a specific validator.
Request
curl cro-croeseid.alchemyapi.io/your-api-key/grpc-reset/cosmos/distribution/v1beta1/delegators/{delegator_address}/rewards/{validator_address}
Result
{
"rewards": [
{
"denom": "string",
"amount": "string"
}
]
}
Queries the validators of a delegator.
delegator_address
- string, required delegator address to query for
Validators for a given delegator.
Request
curl cro-croeseid.alchemyapi.io/your-api-key/grpc-reset/cosmos/distribution/v1beta1/delegators/{delegator_address}/validators
Result
{
"validators": [
"string"
]
}
Queries withdraw address of a delegator.
delegator_address
- string, required delegator address to query for
Withdraw address of delegator.
Request
curl cro-croeseid.alchemyapi.io/your-api-key/grpc-reset/cosmos/distribution/v1beta1/delegators/{delegator_address}/withdraw_address
Result
{
"withdraw_address": "string"
}
Queries params of the distribution module.
none
Params of the distribution module.
Request
curl cro-croeseid.alchemyapi.io/your-api-key/grpc-reset/cosmos/distribution/v1beta1/params
Result
{
"params": {
"community_tax": "string",
"base_proposer_reward": "string",
"bonus_proposer_reward": "string",
"withdraw_addr_enabled": true
}
}
Queries accumulated commission for a validator.
validator_address
- string, required validator address to query for
Total commission for a validator.
Request
curl cro-croeseid.alchemyapi.io/your-api-key/grpc-reset/cosmos/distribution/v1beta1/validators/{validator_address}/commission
Result
{
"commission": {
"commission": [
{
"denom": "string",
"amount": "string"
}
]
}
}
Queries rewards of a validator address.
validator_address
- string, required validator address to query for
Total outstanding rewards for a validator.
Request
curl cro-croeseid.alchemyapi.io/your-api-key/grpc-reset/cosmos/distribution/v1beta1/validators/{validator_address}/outstanding_rewards
Result
{
"rewards": {
"rewards": [
{
"denom": "string",
"amount": "string"
}
]
}
}
Returns slash events of a validator
validator_address
- string, required validator address to query forstarting_height
- string($uint64
), the optional starting height to query the hashesending_height
- string($uint64
), the optional ending height to query the hashespagination.key
- string($byte
), value returned inPageResponse.next_key
to begin querying the next page efficiently. Only one ofoffset
orkey
should be set.pagination.key
- string($uint64
), numeric offset that can be used whenkey
is unavailable (less efficient than usingkey
). Only one ofoffset
orkey
should be set.pagination.limit
- string($uint64
), total number of results to be returned in the results page. If empty, will default to a value to be set by each app.pagination.count_total
- boolean, set to true to indicate that the result set should include a count of the total number of items available for pagination in the UIs. Only respected whenoffset
is used, ignored whenkey
is set.
All slash events of a validator.
Request
curl cro-croeseid.alchemyapi.io/your-api-key/grpc-reset/cosmos/distribution/v1beta1/validators/{validator_address}/slashes
Result
{
"slashes": [
{
"validator_period": "string",
"fraction": "string"
}
],
"pagination": {
"next_key": "string",
"total": "string"
}
}
Queries all evidence.
pagination.key
- string($byte
), value returned inPageResponse.next_key
to begin querying the next page efficiently. Only one ofoffset
orkey
should be set.pagination.key
- string($uint64
), numeric offset that can be used whenkey
is unavailable (less efficient than usingkey
). Only one ofoffset
orkey
should be set.pagination.limit
- string($uint64
), total number of results to be returned in the results page. If empty, will default to a value to be set by each app.pagination.count_total
- boolean, set to true to indicate that the result set should include a count of the total number of items available for pagination in the UIs. Only respected whenoffset
is used, ignored whenkey
is set.
All evidence.
Request