gRPC-REST API
Supported methods for Alchemy Crypto.org gRPC-REST API.

Alchemy gRPC 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.

Tendermint RPC

syncing

Syncing state of node. Get if the node is currently syncing with other nodes

Parameters

none

Returns

Node syncing status

Example

Request
1
curl https://cro-croeseid.alchemyapi.io/your-api-key/cosmos-rest/syncing
Copied!
Result
1
{
2
"syncing": true
3
}
Copied!

blocks/latest

Get the latest block.

Parameters

none

Returns

The latest block.

Example

Request
1
curl https://cro-croeseid.alchemyapi.io/your-api-key/cosmos-rest/blocks/latest
Copied!
Result
1
{
2
"block_meta": {
3
"header": {
4
"chain_id": "cosmoshub-2",
5
"height": 1,
6
"time": "2017-12-30T05:53:09.287+01:00",
7
"num_txs": 0,
8
"last_block_id": {
9
"hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
10
"parts": {
11
"total": 0,
12
"hash": "EE5F3404034C524501629B56E0DDC38FAD651F04"
13
}
14
},
15
"total_txs": 35,
16
"last_commit_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
17
"data_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
18
"validators_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
19
"next_validators_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
20
"consensus_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
21
"app_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
22
"last_results_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
23
"evidence_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
24
"proposer_address": "cosmos1depk54cuajgkzea6zpgkq36tnjwdzv4afc3d27",
25
"version": {
26
"block": 10,
27
"app": 0
28
}
29
},
30
"block_id": {
31
"hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
32
"parts": {
33
"total": 0,
34
"hash": "EE5F3404034C524501629B56E0DDC38FAD651F04"
35
}
36
}
37
},
38
"block": {
39
"header": {
40
"chain_id": "cosmoshub-2",
41
"height": 1,
42
"time": "2017-12-30T05:53:09.287+01:00",
43
"num_txs": 0,
44
"last_block_id": {
45
"hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
46
"parts": {
47
"total": 0,
48
"hash": "EE5F3404034C524501629B56E0DDC38FAD651F04"
49
}
50
},
51
"total_txs": 35,
52
"last_commit_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
53
"data_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
54
"validators_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
55
"next_validators_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
56
"consensus_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
57
"app_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
58
"last_results_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
59
"evidence_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
60
"proposer_address": "cosmos1depk54cuajgkzea6zpgkq36tnjwdzv4afc3d27",
61
"version": {
62
"block": 10,
63
"app": 0
64
}
65
},
66
"txs": [
67
"string"
68
],
69
"evidence": [
70
"string"
71
],
72
"last_commit": {
73
"block_id": {
74
"hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
75
"parts": {
76
"total": 0,
77
"hash": "EE5F3404034C524501629B56E0DDC38FAD651F04"
78
}
79
},
80
"precommits": [
81
{
82
"validator_address": "string",
83
"validator_index": "0",
84
"height": "0",
85
"round": "0",
86
"timestamp": "2017-12-30T05:53:09.287+01:00",
87
"type": 2,
88
"block_id": {
89
"hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
90
"parts": {
91
"total": 0,
92
"hash": "EE5F3404034C524501629B56E0DDC38FAD651F04"
93
}
94
},
95
"signature": "7uTC74QlknqYWEwg7Vn6M8Om7FuZ0EO4bjvuj6rwH1mTUJrRuMMZvAAqT9VjNgP0RA/TDp6u/92AqrZfXJSpBQ=="
96
}
97
]
98
}
99
}
100
}
Copied!

blocks/{height}

Get a block at a certain height.

Parameters

    height - integer, required block height

Returns

none

Example

Request
1
curl https://cro-croeseid.alchemyapi.io/your-api-key/cosmos-rest/blocks/1
Copied!
Result
1
{
2
"block_meta": {
3
"header": {
4
"chain_id": "cosmoshub-2",
5
"height": 1,
6
"time": "2017-12-30T05:53:09.287+01:00",
7
"num_txs": 0,
8
"last_block_id": {
9
"hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
10
"parts": {
11
"total": 0,
12
"hash": "EE5F3404034C524501629B56E0DDC38FAD651F04"
13
}
14
},
15
"total_txs": 35,
16
"last_commit_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
17
"data_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
18
"validators_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
19
"next_validators_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
20
"consensus_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
21
"app_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
22
"last_results_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
23
"evidence_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
24
"proposer_address": "cosmos1depk54cuajgkzea6zpgkq36tnjwdzv4afc3d27",
25
"version": {
26
"block": 10,
27
"app": 0
28
}
29
},
30
"block_id": {
31
"hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
32
"parts": {
33
"total": 0,
34
"hash": "EE5F3404034C524501629B56E0DDC38FAD651F04"
35
}
36
}
37
},
38
"block": {
39
"header": {
40
"chain_id": "cosmoshub-2",
41
"height": 1,
42
"time": "2017-12-30T05:53:09.287+01:00",
43
"num_txs": 0,
44
"last_block_id": {
45
"hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
46
"parts": {
47
"total": 0,
48
"hash": "EE5F3404034C524501629B56E0DDC38FAD651F04"
49
}
50
},
51
"total_txs": 35,
52
"last_commit_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
53
"data_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
54
"validators_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
55
"next_validators_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
56
"consensus_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
57
"app_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
58
"last_results_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
59
"evidence_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
60
"proposer_address": "cosmos1depk54cuajgkzea6zpgkq36tnjwdzv4afc3d27",
61
"version": {
62
"block": 10,
63
"app": 0
64
}
65
},
66
"txs": [
67
"string"
68
],
69
"evidence": [
70
"string"
71
],
72
"last_commit": {
73
"block_id": {
74
"hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
75
"parts": {
76
"total": 0,
77
"hash": "EE5F3404034C524501629B56E0DDC38FAD651F04"
78
}
79
},
80
"precommits": [
81
{
82
"validator_address": "string",
83
"validator_index": "0",
84
"height": "0",
85
"round": "0",
86
"timestamp": "2017-12-30T05:53:09.287+01:00",
87
"type": 2,
88
"block_id": {
89
"hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
90
"parts": {
91
"total": 0,
92
"hash": "EE5F3404034C524501629B56E0DDC38FAD651F04"
93
}
94
},
95
"signature": "7uTC74QlknqYWEwg7Vn6M8Om7FuZ0EO4bjvuj6rwH1mTUJrRuMMZvAAqT9VjNgP0RA/TDp6u/92AqrZfXJSpBQ=="
96
}
97
]
98
}
99
}
100
}
Copied!

validatorsets/latest

Get the latest validator set (latest block height).

Parameters

none

Returns

The validator set at the latest block height

Example

Request
1
curl https://cro-croeseid.alchemyapi.io/your-api-key/cosmos-rest/validatorsets/latest
Copied!
Result
1
{
2
"block_height": "string",
3
"validators": [
4
{
5
"address": "cosmosvaloper16xyempempp92x9hyzz9wrgf94r6j9h5f2w4n2l",
6
"pub_key": "cosmosvalconspub1zcjduepq0vu2zgkgk49efa0nqwzndanq5m4c7pa3u4apz4g2r9gspqg6g9cs3k9cuf",
7
"voting_power": "1000",
8
"proposer_priority": "1000"
9
}
10
]
11
}
Copied!

validatorsets/{height}

Get the validator set at a certain height.

Parameters

    height - integer, required block height

Returns

The validator set at a specific block height.

Example

Request
1
curl https://cro-croeseid.alchemyapi.io/your-api-key/cosmos-rest/validatorsets/{height}
Copied!
Result
1
{
2
"block_height": "string",
3
"validators": [
4
{
5
"address": "cosmosvaloper16xyempempp92x9hyzz9wrgf94r6j9h5f2w4n2l",
6
"pub_key": "cosmosvalconspub1zcjduepq0vu2zgkgk49efa0nqwzndanq5m4c7pa3u4apz4g2r9gspqg6g9cs3k9cuf",
7
"voting_power": "1000",
8
"proposer_priority": "1000"
9
}
10
]
11
}
Copied!

Query

cosmos/auth methods

/cosmos/auth/v1beta1/accounts/{address}

Returns account details based on address.

Parameters

    address - string, required address to query for

Returns

Account details

Example

Request
1
curl https://cro-croeseid.alchemyapi.io/your-api-key/cosmos-rest/cosmos/auth/v1beta1/accounts/{address}
Copied!
Result
1
{
2
"account": {
3
"type_url": "string",
4
"value": "string"
5
}
6
}
Copied!

NOTE:Example requests below have not been updated. When making requests please use:

1
https://cro-croeseid.alchemyapi.io/your-api-key/cosmos-rest
Copied!

/cosmos/auth/v1beta1/params

Query all parameters.

Parameters

none

Returns

Parameters

Example

Request
1
curl cro-croeseid.alchemyapi.io/your-api-key/grpc-reset/cosmos/auth/v1beta1/params
Copied!
Result
1
{
2
"params": {
3
"max_memo_characters": "string",
4
"tx_sig_limit": "string",
5
"tx_size_cost_per_byte": "string",
6
"sig_verify_cost_ed25519": "string",
7
"sig_verify_cost_secp256k1": "string"
8
}
9
}
Copied!

cosmos/bank methods

/cosmos/bank/v1beta1/balances/{address}

Returns the balance of all coins for a single account.

Parameters

    address - string, required address to query balances for
    pagination.key - string($byte), value returned in PageResponse.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.

Returns

Balance of all coins for a single account

Example

Request
1
curl cro-croeseid.alchemyapi.io/your-api-key/grpc-reset/cosmos/bank/v1beta1/balances/{address}
Copied!
Result
1
{
2
"balances": [
3
{
4
"denom": "string",
5
"amount": "string"
6
}
7
],
8
"pagination": {
9
"next_key": "string",
10
"total": "string"
11
}
12
}
Copied!

/cosmos/bank/v1beta1/balances/{address}/{denom}

Return balance of a single coin for a single account.

Parameters

    address - string, required address to query balances for
    denom - string, required coin denom to query balances for

Returns

Balance of the specific coin for a single account.

Example

Request
1
curl cro-croeseid.alchemyapi.io/your-api-key/grpc-reset/cosmos/bank/v1beta1/balances/{address}/{denom}
Copied!
Result
1
{
2
"balance": {
3
"denom": "string",
4
"amount": "string"
5
}
6
}
Copied!

/cosmos/bank/v1beta1/params

Queries the parameters of x/bank module.

Parameters

none

Returns

Parameters of x/bank module.

Example

Request
1
curl cro-croeseid.alchemyapi.io/your-api-key/grpc-reset/cosmos/bank/v1beta1/params
Copied!
Result
1
{
2
"params": {
3
"send_enabled": [
4
{
5
"denom": "string",
6
"enabled": true
7
}
8
],
9
"default_send_enabled": true
10
}
11
}
Copied!

/cosmos/bank/v1beta1/supply

Returns the total supply of all coins.

Parameters

none

Returns

Supply of all coins.

Example

Request
1
curl cro-croeseid.alchemyapi.io/your-api-key/grpc-reset/cosmos/bank/v1beta1/supply
Copied!
Result
1
{
2
"supply": [
3
{
4
"denom": "string",
5
"amount": "string"
6
}
7
]
8
}
Copied!

/cosmos/bank/v1beta1/supply/{denom}

Returns the supply of a single coin.

Parameters

    denom - string, required denom of the coin to query balances for

Returns

Total supply of a single coin.

Example

Request
1
curl cro-croeseid.alchemyapi.io/your-api-key/grpc-reset/cosmos/bank/v1beta1/supply/{denom}
Copied!
Result
1
{
2
"amount": {
3
"denom": "string",
4
"amount": "string"
5
}
6
}
Copied!

cosmos/distribution methods

/cosmos​/distribution​/v1beta1​/community_pool

Queries the community pool coins.

Parameters

none

Returns

Community pool coins.

Example

Request
1
curl cro-croeseid.alchemyapi.io/your-api-key/grpc-reset/cosmos​/distribution​/v1beta1​/community_pool
Copied!
Result
1
{
2
"pool": [
3
{
4
"denom": "string",
5
"amount": "string"
6
}
7
]
8
}
Copied!

​/cosmos​/distribution​/v1beta1​/delegators​/{delegator_address}​/rewards

Queries the total rewards accrued by each validator.

Parameters

    delegator_address - string, required delegator address to query for

Returns

Rewards from each validator.

Example

Request
1
curl cro-croeseid.alchemyapi.io/your-api-key/grpc-reset​/cosmos​/distribution​/v1beta1​/delegators​/{delegator_address}​/rewards
Copied!
Result
1
{
2
"rewards": [
3
{
4
"validator_address": "string",
5
"reward": [
6
{
7
"denom": "string",
8
"amount": "string"
9
}
10
]
11
}
12
],
13
"total": [
14
{
15
"denom": "string",
16
"amount": "string"
17
}
18
]
19
}
Copied!

/cosmos/distribution/v1beta1/delegators/{delegator_address}/rewards/{validator_address}

Queries the total rewards accrued by a delegation.

Parameters

    delegator_address - string, required delegator address to query for
    validator_address - string, required validator address to query for

Returns

Total rewards accrued by a delegation for a specific validator.

Example

Request
1
curl cro-croeseid.alchemyapi.io/your-api-key/grpc-reset/cosmos/distribution/v1beta1/delegators/{delegator_address}/rewards/{validator_address}
Copied!
Result
1
{
2
"rewards": [
3
{
4
"denom": "string",
5
"amount": "string"
6
}
7
]
8
}
Copied!

/cosmos/distribution/v1beta1/delegators/{delegator_address}/validators

Queries the validators of a delegator.

Parameters

    delegator_address - string, required delegator address to query for

Returns

Validators for a given delegator.

Example

Request
1
curl cro-croeseid.alchemyapi.io/your-api-key/grpc-reset/cosmos/distribution/v1beta1/delegators/{delegator_address}/validators
Copied!
Result
1
{
2
"validators": [
3
"string"
4
]
5
}
Copied!

/cosmos/distribution/v1beta1/delegators/{delegator_address}/withdraw_address

Queries withdraw address of a delegator.

Parameters

    delegator_address - string, required delegator address to query for

Returns

Withdraw address of delegator.

Example

Request
1
curl cro-croeseid.alchemyapi.io/your-api-key/grpc-reset/cosmos/distribution/v1beta1/delegators/{delegator_address}/withdraw_address
Copied!
Result
1
{
2
"withdraw_address": "string"
3
}
Copied!

/cosmos/distribution/v1beta1/params

Queries params of the distribution module.

Parameters

none

Returns

Params of the distribution module.

Example

Request
1
curl cro-croeseid.alchemyapi.io/your-api-key/grpc-reset/cosmos/distribution/v1beta1/params
Copied!
Result
1
{
2
"params": {
3
"community_tax": "string",
4
"base_proposer_reward": "string",
5
"bonus_proposer_reward": "string",
6
"withdraw_addr_enabled": true
7
}
8
}
Copied!

/cosmos/distribution/v1beta1/validators/{validator_address}/commission

Queries accumulated commission for a validator.

Parameters

    validator_address - string, required validator address to query for

Returns

Total commission for a validator.

Example

Request
1
curl cro-croeseid.alchemyapi.io/your-api-key/grpc-reset/cosmos/distribution/v1beta1/validators/{validator_address}/commission
Copied!
Result
1
{
2
"commission": {
3
"commission": [
4
{
5
"denom": "string",
6
"amount": "string"
7
}
8
]
9
}
10
}
Copied!

/cosmos/distribution/v1beta1/validators/{validator_address}/outstanding_rewards

Queries rewards of a validator address.

Parameters

    validator_address - string, required validator address to query for

Returns

Total outstanding rewards for a validator.

Example

Request
1
curl cro-croeseid.alchemyapi.io/your-api-key/grpc-reset/cosmos/distribution/v1beta1/validators/{validator_address}/outstanding_rewards
Copied!
Result
1
{
2
"rewards": {
3
"rewards": [
4
{
5
"denom": "string",
6
"amount": "string"
7
}
8
]
9
}
10
}
Copied!

​/cosmos​/distribution​/v1beta1​/validators​/{validator_address}​/slashes

Returns slash events of a validator

Parameters

    validator_address - string, required validator address to query for
    starting_height - string($uint64), the optional starting height to query the hashes
    ending_height - string($uint64), the optional ending height to query the hashes
    pagination.key - string($byte), value returned in PageResponse.next_key to begin querying the next page efficiently. Only one of offset or key should be set.
    pagination.key - string($uint64), numeric offset that can be used when key is unavailable (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 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 when offset is used, ignored when key is set.

Returns

All slash events of a validator.

Example

Request
1
curl cro-croeseid.alchemyapi.io/your-api-key/grpc-reset​/cosmos​/distribution​/v1beta1​/validators​/{validator_address}​/slashes
Copied!
Result
1
{
2
"slashes": [
3
{
4
"validator_period": "string",
5
"fraction": "string"
6
}
7
],
8
"pagination": {
9
"next_key": "string",
10
"total": "string"
11
}
12
}
Copied!

cosmos/evidence methods

/cosmos/evidence/v1beta1/evidence

Queries all evidence.

Parameters

    pagination.key - string($byte), value returned in PageResponse.next_key to begin querying the next page efficiently. Only one of offset or key should be set.
    pagination.key - string($uint64), numeric offset that can be used when key is unavailable (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 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 when offset is used, ignored when key is set.

Returns

All evidence.

Example

Request
1
curl cro-croeseid.alchemyapi.io/your-api-key/grpc-reset/cosmos/evidence/v1beta1/evidence
Copied!
Result
1
{
2
"evidence": [
3
{
4
"type_url": "string",
5
"value": "string"
6
}
7
],
8
"pagination": {
9
"next_key": "string",
10
"total": "string"
11
}
12
}
Copied!

/cosmos/evidence/v1beta1/evidence/{evidence_hash}

Queries evidence based on evidence hash.

Parameters

    evidence_hash - string($byte), the hash of the requested evidence.

Returns

Evidence for a given hash.

Example

Request
1
curl cro-croeseid.alchemyapi.io/your-api-key/grpc-reset/cosmos/evidence/v1beta1/evidence/{evidence_hash}
Copied!
Result
1
{
2
"evidence": {
3
"type_url": "string",
4
"value": "string"
5
}
6
}
Copied!

cosmos/gov methods

/cosmos/gov/v1beta1/params/{params_type}

Queries all parameters of the gov module.

Parameters

    params_type - string, required parameters to query for, can be one of "voting", "tallying", or "deposit"

Returns

Parameters of the gov module.

Example

Request
1
curl cro-croeseid.alchemyapi.io/your-api-key/grpc-reset/cosmos/gov/v1beta1/params/{params_type}
Copied!
Result
1
{
2
"voting_params": {
3
"voting_period": "string"
4
},
5
"deposit_params": {
6
"min_deposit": [
7
{
8
"denom": "string",
9
"amount": "string"
10
}
11
],
12
"max_deposit_period": "string"
13
},
14
"tally_params": {
15
"quorum": "string",
16
"threshold": "string",
17
"veto_threshold": "string"
18
}
19
}
Copied!

/cosmos/gov/v1beta1/proposals

Queries all proposals based on given status.

Parameters

    proposal_status - defines status of the proposals. See below for different options. Default value = PROPOSAL_STATUS_UNSPECIFIED
      PROPOSAL_STATUS_UNSPECIFIED: default proposal status.
      PROPOSAL_STATUS_DEPOSIT_PERIOD: defines a proposal status during the deposit period.
      PROPOSAL_STATUS_VOTING_PERIOD: defines a proposal status during the voting period.
      PROPOSAL_STATUS_PASSED: defines a proposal status of a proposal that has passed.
      PROPOSAL_STATUS_REJECTED: defines a proposal status of a proposal that has been rejected.
      PROPOSAL_STATUS_FAILED: defines a proposal status of a proposal that has failed.
    voter - string, defines the voter address for the proposals.
    depositor - string, defines the deposit addresses from the proposals
    pagination.key - string($byte), value returned in PageResponse.next_key to begin querying the next page efficiently. Only one of offset or key should be set.
    pagination.key - string($uint64), numeric offset that can be used when key is unavailable (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 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 when offset is used, ignored when key is set.

Returns

Proposals based on given status.

Example

Request
1
curl cro-croeseid.alchemyapi.io/your-api-key/grpc-reset/cosmos/gov/v1beta1/proposals
Copied!
Result
1
{
2
"proposals": [
3
{
4
"proposal_id": "string",
5
"content": {
6
"type_url": "string",
7
"value": "string"
8
},
9
"status": "PROPOSAL_STATUS_UNSPECIFIED",
10
"final_tally_result": {
11
"yes": "string",
12
"abstain": "string",
13
"no": "string",
14
"no_with_veto": "string"
15
},
16
"submit_time": "2021-01-19T03:03:05.413Z",
17
"deposit_end_time": "2021-01-19T03:03:05.413Z",
18
"total_deposit": [
19
{
20
"denom": "string",
21
"amount": "string"
22
}
23
],
24
"voting_start_time": "2021-01-19T03:03:05.413Z",
25
"voting_end_time": "2021-01-19T03:03:05.413Z"
26
}
27
],
28
"pagination": {
29
"next_key": "string",
30
"total": "string"
31
}
32
}
Copied!

/cosmos/gov/v1beta1/proposals/{proposal_id}

Queries proposal details based on ProposalID.

Parameters

    proposal_id - string, required unique id of the proposal

Returns

Proposal details based on proposalID.

Example

Request
1
curl cro-croeseid.alchemyapi.io/your-api-key/grpc-reset/cosmos/gov/v1beta1/proposals/{proposal_id}
Copied!
Result
1
{
2
"proposal": {
3
"proposal_id": "string",
4
"content": {
5
"type_url": "string",
6
"value": "string"
7
},
8
"status": "PROPOSAL_STATUS_UNSPECIFIED",
9
"final_tally_result": {
10
"yes": "string",
11
"abstain": "string",
12
"no": "string",
13
"no_with_veto": "string"
14
},
15
"submit_time": "2021-01-19T03:30:27.807Z",
16
"deposit_end_time": "2021-01-19T03:30:27.807Z",
17
"total_deposit": [
18
{
19
"denom": "string",
20
"amount": "string"
21
}
22
],
23
"voting_start_time": "2021-01-19T03:30:27.807Z",
24
"voting_end_time": "2021-01-19T03:30:27.807Z"