For AI agents: an LLM-friendly Markdown version of every page is available by appending .md to its URL or by sending an Accept: text/markdown request header. The full documentation index is at https://www.ankr.com/docs/llms.txt
Skip to main content

Secret Network — Query

API reference for Secret Network. All methods ->

Query

/cosmos/auth/v1beta1/accounts

Retrieves all the existing accounts.

Parameters


  • pagination.key (string; byte; query): key is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of the pagination parameters should be set — pagination.key or pagination.offset.
  • pagination.offset (string; uint64; query): offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of the pagination parameters should be set — pagination.key or pagination.offset.
  • pagination.limit (string; uint64; query): limit is the 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; query): count_total is 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.
  • pagination.reverse (boolean; query): reverse is set to true if results are to be returned in the descending order.

Returns

Response codes:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/auth/v1beta1/accounts

Response example

{
"accounts": [
{
"type_url": "string",
"value": "string"
}
],
"pagination": {
"next_key": "string",
"total": "string"
}
}

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

Retrieves account details based on address.

Parameters


  • address (string; path; required): the address of account to retrieve details for.

Returns

Response codes:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/auth/v1beta1/accounts/{address}

Response example

{
"account": {
"type_url": "string",
"value": "string"
}
}

/cosmos/auth/v1beta1/params

Retrieves all parameters.

Parameters

None.

Returns

Response codes:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/auth/v1beta1/params

Request example

{
"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"
}
}

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

Retrieves the balance of all coins for a single account.

Parameters


  • address (string; path; required): the address to query balances for.
  • pagination.key (string; byte; query): key is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of the pagination parameters should be set — pagination.key or pagination.offset.
  • pagination.offset (string; uint64; query): offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of the pagination parameters should be set — pagination.key or pagination.offset.
  • pagination.limit (string; uint64; query): limit is the 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; query): count_total is 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.
  • pagination.reverse (boolean; query): reverse is set to true if results are to be returned in the descending order.

Returns

Response codes:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/bank/v1beta1/balances/{address}

Response example

{
"balances": [
{
"denom": "string",
"amount": "string"
}
],
"pagination": {
"next_key": "string",
"total": "string"
}
}

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

Retrieves the balance of a single coin for a single account.

Parameters


  • address (string; path; required): the address to query balances for.
  • denom (string; path; required): the coin denom to query balances for.

Returns

Response codes:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/bank/v1beta1/balances/{address}/{denom}

Response example

{
"balance": {
"denom": "string",
"amount": "string"
}
}

/cosmos/bank/v1beta1/denoms_metadata

Retrieves the client metadata for all registered coin denominations.

Parameters


  • pagination.key (string; byte; query): key is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of the pagination parameters should be set — pagination.key or pagination.offset.
  • pagination.offset (string; uint64; query): offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of the pagination parameters should be set — pagination.key or pagination.offset.
  • pagination.limit (string; uint64; query): limit is the 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; query): count_total is 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.
  • pagination.reverse (boolean; query): reverse is set to true if results are to be returned in the descending order.

Returns

Response codes:

  • 200 — success.
  • default - unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/bank/v1beta1/denoms_metadata

Response example

{
"metadatas": [
{
"description": "string",
"denom_units": [
{
"denom": "string",
"exponent": 0,
"aliases": [
"string"
]
}
],
"base": "string",
"display": "string",
"name": "string",
"symbol": "string",
"uri": "string",
"uri_hash": "string"
}
],
"pagination": {
"next_key": "string",
"total": "string"
}
}

/cosmos/bank/v1beta1/denoms_metadata/{denom}

Retrieves the client metadata of a given coin denomination.

Parameters


  • denom (string; path; required): the coin denomination to query the metadata for.

Returns

Response codes:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/bank/v1beta1/denoms_metadata/{denom}

Response example

{
"metadata": {
"description": "string",
"denom_units": [
{
"denom": "string",
"exponent": 0,
"aliases": [
"string"
]
}
],
"base": "string",
"display": "string",
"name": "string",
"symbol": "string",
"uri": "string",
"uri_hash": "string"
}
}

/cosmos/bank/v1beta1/params

Retrieves the parameters of x/bank module.

Parameter

None.

Returns

Response codes:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/bank/v1beta1/params

Response example

{
"params": {
"send_enabled": [
{
"denom": "string",
"enabled": true
}
],
"default_send_enabled": true
}
}

/cosmos/bank/v1beta1/supply

Retrieves the total supply of all coins.

Parameters


  • pagination.key (string; byte; query): key is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of the pagination parameters should be set — pagination.key or pagination.offset.
  • pagination.offset (string; uint64; query): offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of the pagination parameters should be set — pagination.key or pagination.offset.
  • pagination.limit (string; uint64; query): limit is the 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; query): count_total is 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.
  • pagination.reverse (boolean; query): reverse is set to true if results are to be returned in the descending order.

Returns

Code responses:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/bank/v1beta1/supply

Response example

{
"supply": [
{
"denom": "string",
"amount": "string"
}
],
"pagination": {
"next_key": "string",
"total": "string"
}
}

/cosmos/distribution/v1beta1/community_pool

Retrieves the community pool coins.

Parameters

None.

Returns

Response codes:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/distribution/v1beta1/community_pool

Response example

{
"pool": [
{
"denom": "string",
"amount": "string"
}
]
}

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

Retrieves the total rewards accrued by each validator.

Parameters


  • delegator_address (string; path; required): the delegator address to query for.

Returns

Response codes:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/distribution/v1beta1/delegators/{delegator_address}/rewards

Response example

{
"rewards": [
{
"validator_address": "string",
"reward": [
{
"denom": "string",
"amount": "string"
}
]
}
],
"total": [
{
"denom": "string",
"amount": "string"
}
]
}

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

Retrieves the total rewards accrued by a delegation.

Parameters


  • delegator_address (string; path; required): the delegator address to query for.
  • validator_address (string; path; required): the validator address to query for.

Returns

Response codes:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/distribution/v1beta1/delegators/{delegator_address}/rewards/{validator_address}

Response example

{
"rewards": [
{
"denom": "string",
"amount": "string"
}
]
}

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

Retrieves the validators of a delegator.

Parameters


  • delegator_address (string; path; required): the delegator address to query for.

Returns

Response codes:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/distribution/v1beta1/delegators/{delegator_address}/validators

Response example

{
"validators": [
"string"
]
}

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

Retrieves a withdrawal address of a delegator.

Parameters


  • delegator_address (string; path; required): the delegator address to query for.

Returns

Response codes:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/distribution/v1beta1/delegators/{delegator_address}/withdraw_address

Response example

{
"withdraw_address": "string"
}

/cosmos/distribution/v1beta1/params

Retrieves parameters of the distribution module.

Parameters

None.

Returns

Response codes:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/distribution/v1beta1/params

Response example

{
"params": {
"community_tax": "string",
"base_proposer_reward": "string",
"bonus_proposer_reward": "string",
"withdraw_addr_enabled": true
}
}

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

Retrieves accumulated commission for a validator.

Parameters


  • validator_address (string; path; required): the validator address to query for.

Returns

Response codes:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/distribution/v1beta1/validators/{validator_address}/commission

Response example

{
"commission": {
"commission": [
{
"denom": "string",
"amount": "string"
}
]
}
}

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

Retrieves the rewards of a validator address.

Parameters


  • validator_address (string; path; required): the validator address to query for.

Returns

Response codes:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/distribution/v1beta1/validators/{validator_address}/outstanding_rewards

Response example

{
"rewards": {
"rewards": [
{
"denom": "string",
"amount": "string"
}
]
}
}

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

Retrieves slash events of a validator.

Parameters


  • validator_address (string; path; required): the validator address to query for.
  • starting_height (uint64; query): the optional starting height to query the slashes.
  • ending_height (uint64; query): the optional ending height to query the slashes.
  • pagination.key (string; byte; query): key is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of the pagination parameters should be set — pagination.key or pagination.offset.
  • pagination.offset (string; uint64; query): offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of the pagination parameters should be set — pagination.key or pagination.offset.
  • pagination.limit (string; uint64; query): limit is the 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; query): count_total is 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.
  • pagination.reverse (boolean; query): reverse is set to true if results are to be returned in the descending order.

Returns

Response codes:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/distribution/v1beta1/validators/{validator_address}/slashes

Response example

{
"slashes": [
{
"validator_period": "string",
"fraction": "string"
}
],
"pagination": {
"next_key": "string",
"total": "string"
}
}

/cosmos/evidence/v1beta1/evidence

Retrieves all evidence.

Parameters


  • pagination.key (string; byte; query): key is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of the pagination parameters should be set — pagination.key or pagination.offset.
  • pagination.offset (string; uint64; query): offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of the pagination parameters should be set — pagination.key or pagination.offset.
  • pagination.limit (string; uint64; query): limit is the 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; query): count_total is 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.
  • pagination.reverse (boolean; query): reverse is set to true if results are to be returned in the descending order.

Returns

Response codes:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/evidence/v1beta1/evidence

Response example

{
"evidence": [
{
"type_url": "string",
"value": "string"
}
],
"pagination": {
"next_key": "string",
"total": "string"
}
}

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

Retrieves evidence based on evidence hash.

Parameters


  • evidence_hash (string; byte; path; required): the hash of the evidence to retrieve.

Returns

Response codes:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/evidence/v1beta1/evidence/{evidence_hash}

Response example

{
"evidence": {
"type_url": "string",
"value": "string"
}
}

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

Retrieves all parameters of the gov module.

Parameters


  • params_type (string; path; required): defines which parameters to query for, can be one of "voting", "tallying", or "deposit".

Returns

Response codes:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/gov/v1beta1/params/{params_type}

Response example

{
"voting_params": {
"voting_period": "string"
},
"deposit_params": {
"min_deposit": [
{
"denom": "string",
"amount": "string"
}
],
"max_deposit_period": "string"
},
"tally_params": {
"quorum": "string",
"threshold": "string",
"veto_threshold": "string"
}
}

/cosmos/gov/v1beta1/proposals

Retrieves all proposals based on given status.

Parameters


  • proposal_status (string; query): defines the status of the proposals; the following statuses are available:
    • PROPOSAL_STATUS_UNSPECIFIED: a default proposal status.
    • PROPOSAL_STATUS_DEPOSIT_PERIOD: a proposal status during the deposit period.
    • PROPOSAL_STATUS_VOTING_PERIOD: a proposal status during the voting period.
    • PROPOSAL_STATUS_PASSED: a proposal status of a proposal that has passed.
    • PROPOSAL_STATUS_REJECTED: a proposal status of a proposal that has been rejected.
    • PROPOSAL_STATUS_FAILED: a proposal status of a proposal that has failed.
  • voter (string; query):
  • depositor (string; query):
  • pagination.key (string; byte; query): key is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of the pagination parameters should be set — pagination.key or pagination.offset.
  • pagination.offset (string; uint64; query): offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of the pagination parameters should be set — pagination.key or pagination.offset.
  • pagination.limit (string; uint64; query): limit is the 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; query): count_total is 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.
  • pagination.reverse (boolean; query): reverse is set to true if results are to be returned in the descending order.

Returns

Response codes:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/gov/v1beta1/proposals

Response example

{
"proposals": [
{
"proposal_id": "string",
"content": {
"type_url": "string",
"value": "string"
},
"status": "PROPOSAL_STATUS_UNSPECIFIED",
"final_tally_result": {
"yes": "string",
"abstain": "string",
"no": "string",
"no_with_veto": "string"
},
"submit_time": "2023-03-02T10:55:55.465Z",
"deposit_end_time": "2023-03-02T10:55:55.465Z",
"total_deposit": [
{
"denom": "string",
"amount": "string"
}
],
"voting_start_time": "2023-03-02T10:55:55.465Z",
"voting_end_time": "2023-03-02T10:55:55.465Z"
}
],
"pagination": {
"next_key": "string",
"total": "string"
}
}

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

Retrieves proposal details based on proposal ID.

Parameters


  • proposal_id (string; uint64; path; required): the unique ID of the proposal.

Returns

Response codes:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/gov/v1beta1/proposals/{proposal_id}

Response example

{
"proposal": {
"proposal_id": "string",
"content": {
"type_url": "string",
"value": "string"
},
"status": "PROPOSAL_STATUS_UNSPECIFIED",
"final_tally_result": {
"yes": "string",
"abstain": "string",
"no": "string",
"no_with_veto": "string"
},
"submit_time": "2023-03-02T11:08:57.204Z",
"deposit_end_time": "2023-03-02T11:08:57.204Z",
"total_deposit": [
{
"denom": "string",
"amount": "string"
}
],
"voting_start_time": "2023-03-02T11:08:57.204Z",
"voting_end_time": "2023-03-02T11:08:57.204Z"
}
}

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

Retrieves all deposits of a single proposal.

Parameters


  • proposal_id (string; uint64; path; required): the unique ID of the proposal.
  • pagination.key (string; byte; query): key is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of the pagination parameters should be set — pagination.key or pagination.offset.
  • pagination.offset (string; uint64; query): offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of the pagination parameters should be set — pagination.key or pagination.offset.
  • pagination.limit (string; uint64; query): limit is the 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; query): count_total is 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.
  • pagination.reverse (boolean; query): reverse is set to true if results are to be returned in the descending order.

Returns

Response codes:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/gov/v1beta1/proposals/{proposal_id}/deposits

Response example

{
"deposits": [
{
"proposal_id": "string",
"depositor": "string",
"amount": [
{
"denom": "string",
"amount": "string"
}
]
}
],
"pagination": {
"next_key": "string",
"total": "string"
}
}

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

Retrieves single deposit information based on proposal ID and deposit address.

Parameters


  • proposal_id (string; uint64; path; required): the unique ID of the proposal.
  • depositor (string; path; required): the deposit addresses from the proposals.

Returns

Response codes:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/gov/v1beta1/proposals/{proposal_id}/deposits/{depositor}

Response example

{
"deposit": {
"proposal_id": "string",
"depositor": "string",
"amount": [
{
"denom": "string",
"amount": "string"
}
]
}
}

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

Retrieves the tally of a proposal vote.

Parameters


  • proposal_id (string; uint64; path; required): the unique ID of the proposal.

Returns

Response codes:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/gov/v1beta1/proposals/{proposal_id}/tally

Response example

{
"tally": {
"yes": "string",
"abstain": "string",
"no": "string",
"no_with_veto": "string"
}
}

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

Retrieves the votes of a given proposal.

Parameters


  • proposal_id (string; uint64; path; required): the unique ID of the proposal.
  • pagination.key (string; byte; query): key is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of the pagination parameters should be set — pagination.key or pagination.offset.
  • pagination.offset (string; uint64; query): offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of the pagination parameters should be set — pagination.key or pagination.offset.
  • pagination.limit (string; uint64; query): limit is the 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; query): count_total is 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.
  • pagination.reverse (boolean; query): reverse is set to true if results are to be returned in the descending order.

Returns

Response codes:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/gov/v1beta1/proposals/{proposal_id}/votes

Response example

{
"votes": [
{
"proposal_id": "string",
"voter": "string",
"option": "VOTE_OPTION_UNSPECIFIED",
"options": [
{
"option": "VOTE_OPTION_UNSPECIFIED",
"weight": "string"
}
]
}
],
"pagination": {
"next_key": "string",
"total": "string"
}
}

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

Retrieves voted information based on proposal ID and voter address.

Parameters


  • proposal_id (string; uint64; path; required): the unique ID of the proposal.
  • voter (string; path; required): the voter address for the proposal.

Returns

Response codes:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/gov/v1beta1/proposals/{proposal_id}/votes/{voter}

Response example

{
"vote": {
"proposal_id": "string",
"voter": "string",
"option": "VOTE_OPTION_UNSPECIFIED",
"options": [
{
"option": "VOTE_OPTION_UNSPECIFIED",
"weight": "string"
}
]
}
}

/cosmos/mint/v1beta1/annual_provisions

Retrieves the current minting annual provisions value.

Parameters

None.

Returns

Response codes:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/mint/v1beta1/annual_provisions

Response example

{
"annual_provisions": "string"
}

/cosmos/mint/v1beta1/inflation

Retrieves the current minting inflation value.

Parameters

None.

Returns

Response codes:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/mint/v1beta1/inflation

Response example

{
"inflation": "string"
}

/cosmos/mint/v1beta1/params

Retrieves the total set of minting parameters.

Parameters

None.

Returns

Response codes:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/mint/v1beta1/params

Response example

{
"params": {
"mint_denom": "string",
"inflation_rate_change": "string",
"inflation_max": "string",
"inflation_min": "string",
"goal_bonded": "string",
"blocks_per_year": "string"
}
}

/cosmos/slashing/v1beta1/params

Retrieves the parameters of a slashing module.

Parameters

None.

Returns

Response codes:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/slashing/v1beta1/params

Response example

{
"params": {
"signed_blocks_window": "string",
"min_signed_per_window": "string",
"downtime_jail_duration": "string",
"slash_fraction_double_sign": "string",
"slash_fraction_downtime": "string"
}
}

/cosmos/slashing/v1beta1/signing_infos

Retrieves signing info of all validators.

Parameters


  • pagination.key (string; byte; query): key is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of the pagination parameters should be set — pagination.key or pagination.offset.
  • pagination.offset (string; uint64; query): offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of the pagination parameters should be set — pagination.key or pagination.offset.
  • pagination.limit (string; uint64; query): limit is the 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; query): count_total is 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.
  • pagination.reverse (boolean; query): reverse is set to true if results are to be returned in the descending order.

Returns

Response codes:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/slashing/v1beta1/signing_infos

Response example

{
"info": [
{
"address": "string",
"start_height": "string",
"index_offset": "string",
"jailed_until": "2023-03-02T11:34:53.641Z",
"tombstoned": true,
"missed_blocks_counter": "string"
}
],
"pagination": {
"next_key": "string",
"total": "string"
}
}

/cosmos/slashing/v1beta1/signing_infos/{cons_address}

Retrieves the signing info of given cons address.

Parameters


  • cons_address (string; path; required): the address to query signing info from.

Returns

Response codes:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/slashing/v1beta1/signing_infos/{cons_address}

Response example

{
"val_signing_info": {
"address": "string",
"start_height": "string",
"index_offset": "string",
"jailed_until": "2023-03-02T11:37:10.986Z",
"tombstoned": true,
"missed_blocks_counter": "string"
}
}

/cosmos/staking/v1beta1/delegations/{delegator_addr}

Retrieves all delegations of a given delegator address.

Parameters


  • delegator_addr (string; path; required): the address of the delegator to query for.
  • pagination.key (string; byte; query): key is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of the pagination parameters should be set — pagination.key or pagination.offset.
  • pagination.offset (string; uint64; query): offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of the pagination parameters should be set — pagination.key or pagination.offset.
  • pagination.limit (string; uint64; query): limit is the 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; query): count_total is 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.
  • pagination.reverse (boolean; query): reverse is set to true if results are to be returned in the descending order.

Returns

Response codes:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/staking/v1beta1/delegations/{delegator_addr}

Response example

{
"delegation_responses": [
{
"delegation": {
"delegator_address": "string",
"validator_address": "string",
"shares": "string"
},
"balance": {
"denom": "string",
"amount": "string"
}
}
],
"pagination": {
"next_key": "string",
"total": "string"
}
}

/cosmos/staking/v1beta1/delegators/{delegator_addr}/redelegations

Retrieves redelegations of a given address.

Parameters


  • delegator_addr (string; path; required): the address of the delegator to query for.
  • src_validator_addr (string; query): the validator address to redelegate from.
  • dst_validator_addr (string; query): the validator address to redelegate to.
  • pagination.key (string; byte; query): key is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of the pagination parameters should be set — pagination.key or pagination.offset.
  • pagination.offset (string; uint64; query): offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of the pagination parameters should be set — pagination.key or pagination.offset.
  • pagination.limit (string; uint64; query): limit is the 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; query): count_total is 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.
  • pagination.reverse (boolean; query): reverse is set to true if results are to be returned in the descending order.

Returns

Response codes:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/staking/v1beta1/delegators/{delegator_addr}/redelegations

Response example

{
"redelegation_responses": [
{
"redelegation": {
"delegator_address": "string",
"validator_src_address": "string",
"validator_dst_address": "string",
"entries": [
{
"creation_height": "string",
"completion_time": "2023-03-02T11:44:00.360Z",
"initial_balance": "string",
"shares_dst": "string"
}
]
},
"entries": [
{
"redelegation_entry": {
"creation_height": "string",
"completion_time": "2023-03-02T11:44:00.360Z",
"initial_balance": "string",
"shares_dst": "string"
},
"balance": "string"
}
]
}
],
"pagination": {
"next_key": "string",
"total": "string"
}
}

/cosmos/staking/v1beta1/delegators/{delegator_addr}/unbonding_delegations

Retrieves all unbonding delegations of a given delegator address.

Parameters


  • delegator_addr (string; path; required): the address of the delegator to query for.
  • pagination.key (string; byte; query): key is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of the pagination parameters should be set — pagination.key or pagination.offset.
  • pagination.offset (string; uint64; query): offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of the pagination parameters should be set — pagination.key or pagination.offset.
  • pagination.limit (string; uint64; query): limit is the 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; query): count_total is 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.
  • pagination.reverse (boolean; query): reverse is set to true if results are to be returned in the descending order.

Returns

Response codes:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/staking/v1beta1/delegators/{delegator_addr}/unbonding_delegations

Reponse example

{
"unbonding_responses": [
{
"delegator_address": "string",
"validator_address": "string",
"entries": [
{
"creation_height": "string",
"completion_time": "2023-03-02T11:47:55.798Z",
"initial_balance": "string",
"balance": "string"
}
]
}
],
"pagination": {
"next_key": "string",
"total": "string"
}
}

/cosmos/staking/v1beta1/delegators/{delegator_addr}/validators

Retrieves all validators info for a given delegator address.

Parameters


  • delegator_addr (string; path; required): the address of the delegator to query for.
  • pagination.key (string; byte; query): key is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of the pagination parameters should be set — pagination.key or pagination.offset.
  • pagination.offset (string; uint64; query): offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of the pagination parameters should be set — pagination.key or pagination.offset.
  • pagination.limit (string; uint64; query): limit is the 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; query): count_total is 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.
  • pagination.reverse (boolean; query): reverse is set to true if results are to be returned in the descending order.

Returns

Response codes:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/staking/v1beta1/delegators/{delegator_addr}/validators

Response example

{
"validators": [
{
"operator_address": "string",
"consensus_pubkey": {
"type_url": "string",
"value": "string"
},
"jailed": true,
"status": "BOND_STATUS_UNSPECIFIED",
"tokens": "string",
"delegator_shares": "string",
"description": {
"moniker": "string",
"identity": "string",
"website": "string",
"security_contact": "string",
"details": "string"
},
"unbonding_height": "string",
"unbonding_time": "2023-03-02T11:50:03.594Z",
"commission": {
"commission_rates": {
"rate": "string",
"max_rate": "string",
"max_change_rate": "string"
},
"update_time": "2023-03-02T11:50:03.594Z"
},
"min_self_delegation": "string"
}
],
"pagination": {
"next_key": "string",
"total": "string"
}
}

/cosmos/staking/v1beta1/delegators/{delegator_addr}/validators/{validator_addr}

Retrieves validator info by given delegator validator pair.

Parameters


  • delegator_addr (string; path; required): the delegator address to query for.
  • validator_addr (string; path; required): the validator address to query for.

Returns

Response codes:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/staking/v1beta1/delegators/{delegator_addr}/validators/{validator_addr}

Response example

{
"validator": {
"operator_address": "string",
"consensus_pubkey": {
"type_url": "string",
"value": "string"
},
"jailed": true,
"status": "BOND_STATUS_UNSPECIFIED",
"tokens": "string",
"delegator_shares": "string",
"description": {
"moniker": "string",
"identity": "string",
"website": "string",
"security_contact": "string",
"details": "string"
},
"unbonding_height": "string",
"unbonding_time": "2023-03-02T11:52:10.807Z",
"commission": {
"commission_rates": {
"rate": "string",
"max_rate": "string",
"max_change_rate": "string"
},
"update_time": "2023-03-02T11:52:10.807Z"
},
"min_self_delegation": "string"
}
}

/cosmos/staking/v1beta1/historical_info/{height}

Retrieves the historical info for a given height.

Parameters


  • height (string; int64; path; required): the height at which to query the historical data.

Returns

Response codes:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/staking/v1beta1/historical_info/{height}

Response example

{
"hist": {
"header": {
"version": {
"block": "string",
"app": "string"
},
"chain_id": "string",
"height": "string",
"time": "2023-03-02T11:55:21.837Z",
"last_block_id": {
"hash": "string",
"part_set_header": {
"total": 0,
"hash": "string"
}
},
"last_commit_hash": "string",
"data_hash": "string",
"validators_hash": "string",
"next_validators_hash": "string",
"consensus_hash": "string",
"app_hash": "string",
"last_results_hash": "string",
"evidence_hash": "string",
"proposer_address": "string"
},
"valset": [
{
"operator_address": "string",
"consensus_pubkey": {
"type_url": "string",
"value": "string"
},
"jailed": true,
"status": "BOND_STATUS_UNSPECIFIED",
"tokens": "string",
"delegator_shares": "string",
"description": {
"moniker": "string",
"identity": "string",
"website": "string",
"security_contact": "string",
"details": "string"
},
"unbonding_height": "string",
"unbonding_time": "2023-03-02T11:55:21.837Z",
"commission": {
"commission_rates": {
"rate": "string",
"max_rate": "string",
"max_change_rate": "string"
},
"update_time": "2023-03-02T11:55:21.837Z"
},
"min_self_delegation": "string"
}
]
}
}

/cosmos/staking/v1beta1/params

Retrieves the staking parameters.

Parameters

None.

Returns

Response codes:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/staking/v1beta1/params

Response example

{
"params": {
"unbonding_time": "string",
"max_validators": 0,
"max_entries": 0,
"historical_entries": 0,
"bond_denom": "string"
}
}

/cosmos/staking/v1beta1/pool

Retrieves the pool info.

Parameters

None.

Returns

Response codes:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/staking/v1beta1/pool

Response example

{
"pool": {
"not_bonded_tokens": "string",
"bonded_tokens": "string"
}
}

/cosmos/staking/v1beta1/validators

Retrieves all validators that match the given status.

Parameters


  • status (string; query): a status to query the validators for.
  • pagination.key (string; byte; query): key is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of the pagination parameters should be set — pagination.key or pagination.offset.
  • pagination.offset (string; uint64; query): offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of the pagination parameters should be set — pagination.key or pagination.offset.
  • pagination.limit (string; uint64; query): limit is the 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; query): count_total is 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.
  • pagination.reverse (boolean; query): reverse is set to true if results are to be returned in the descending order.

Returns

Response codes:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/staking/v1beta1/validators

Response example

{
"validators": [
{
"operator_address": "string",
"consensus_pubkey": {
"type_url": "string",
"value": "string"
},
"jailed": true,
"status": "BOND_STATUS_UNSPECIFIED",
"tokens": "string",
"delegator_shares": "string",
"description": {
"moniker": "string",
"identity": "string",
"website": "string",
"security_contact": "string",
"details": "string"
},
"unbonding_height": "string",
"unbonding_time": "2023-03-02T12:05:06.275Z",
"commission": {
"commission_rates": {
"rate": "string",
"max_rate": "string",
"max_change_rate": "string"
},
"update_time": "2023-03-02T12:05:06.275Z"
},
"min_self_delegation": "string"
}
],
"pagination": {
"next_key": "string",
"total": "string"
}
}

/cosmos/staking/v1beta1/validators/{validator_addr}

Retrieves validator info for a given validator address.

Parameters


  • validator_addr (string; path; required): the validator address to query for.

Returns

Response codes:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/staking/v1beta1/validators/{validator_addr}

Response example

{
"validator": {
"operator_address": "string",
"consensus_pubkey": {
"type_url": "string",
"value": "string"
},
"jailed": true,
"status": "BOND_STATUS_UNSPECIFIED",
"tokens": "string",
"delegator_shares": "string",
"description": {
"moniker": "string",
"identity": "string",
"website": "string",
"security_contact": "string",
"details": "string"
},
"unbonding_height": "string",
"unbonding_time": "2023-03-02T12:11:37.556Z",
"commission": {
"commission_rates": {
"rate": "string",
"max_rate": "string",
"max_change_rate": "string"
},
"update_time": "2023-03-02T12:11:37.556Z"
},
"min_self_delegation": "string"
}
}

/cosmos/staking/v1beta1/validators/{validator_addr}/delegations

Retrieves delegate info for a given validator.

Parameters


  • validator_addr (string; path; required): the validator address to query for.
  • pagination.key (string; byte; query): key is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of the pagination parameters should be set — pagination.key or pagination.offset.
  • pagination.offset (string; uint64; query): offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of the pagination parameters should be set — pagination.key or pagination.offset.
  • pagination.limit (string; uint64; query): limit is the 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; query): count_total is 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.
  • pagination.reverse (boolean; query): reverse is set to true if results are to be returned in the descending order.

Returns

Response codes:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/staking/v1beta1/validators/{validator_addr}/delegations

Response example

{
"delegation_responses": [
{
"delegation": {
"delegator_address": "string",
"validator_address": "string",
"shares": "string"
},
"balance": {
"denom": "string",
"amount": "string"
}
}
],
"pagination": {
"next_key": "string",
"total": "string"
}
}

/cosmos/staking/v1beta1/validators/{validator_addr}/delegations/{delegator_addr}

Retrieves delegate info for given validator delegator pair.

Parameters


  • validator_addr (string; path; required): the validator address to query for.
  • delegator_addr (string; path; required): the delegator address to query for.

Returns

Response codes:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/staking/v1beta1/validators/{validator_addr}/delegations/{delegator_addr}

Response example

{
"delegation_response": {
"delegation": {
"delegator_address": "string",
"validator_address": "string",
"shares": "string"
},
"balance": {
"denom": "string",
"amount": "string"
}
}
}

/cosmos/staking/v1beta1/validators/{validator_addr}/delegations/{delegator_addr}/unbonding_delegation

Retrieves unbonding info for given validator delegator pair.

Parameters


  • validator_addr (string; path; required): the validator address to query for.
  • delegator_addr (string; path; required): the delegator address to query for.

Returns

Response codes:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/staking/v1beta1/validators/{validator_addr}/delegations/{delegator_addr}/unbonding_delegation

Response example

{
"unbond": {
"delegator_address": "string",
"validator_address": "string",
"entries": [
{
"creation_height": "string",
"completion_time": "2023-03-02T12:22:06.905Z",
"initial_balance": "string",
"balance": "string"
}
]
}
}

/cosmos/staking/v1beta1/validators/{validator_addr}/unbonding_delegations

Retrieves unbonding delegations of a given validator address.

Parameters


  • validator_addr (string; path; required): the validator address to query for.
  • pagination.key (string; byte; query): key is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of the pagination parameters should be set — pagination.key or pagination.offset.
  • pagination.offset (string; uint64; query): offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of the pagination parameters should be set — pagination.key or pagination.offset.
  • pagination.limit (string; uint64; query): limit is the 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; query): count_total is 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.
  • pagination.reverse (boolean; query): reverse is set to true if results are to be returned in the descending order.

Returns

Response codes:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/staking/v1beta1/validators/{validator_addr}/unbonding_delegations

Response example

{
"unbonding_responses": [
{
"delegator_address": "string",
"validator_address": "string",
"entries": [
{
"creation_height": "string",
"completion_time": "2023-03-02T12:23:51.870Z",
"initial_balance": "string",
"balance": "string"
}
]
}
],
"pagination": {
"next_key": "string",
"total": "string"
}
}

/cosmos/upgrade/v1beta1/applied_plan/{name}

Retrieves a previously applied upgrade plan by its name.

Parameters


  • name (string; path; required): the name of the applied plan to query for.

Returns

Response codes:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/upgrade/v1beta1/applied_plan/{name}

Response example

{
"height": "string"
}

/cosmos/upgrade/v1beta1/current_plan

Retrieves the current upgrade plan.

Parameters

None.

Returns

Response codes:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/upgrade/v1beta1/current_plan

Response example

{
"plan": {
"name": "string",
"time": "2023-03-02T12:29:52.518Z",
"height": "string",
"info": "string",
"upgraded_client_state": {
"type_url": "string",
"value": "string"
}
}
}

/cosmos/upgrade/v1beta1/upgraded_consensus_state/{last_height}

Retrieves the consensus state that will serve as a trusted kernel for the next version of this chain.

It will only be stored at the last height of this chain. UpgradedConsensusState RPC not supported with legacy querier.

Parameters


  • last_height (string; int64; path; required): the last height of the current chain must be sent in request as this is the height under which the next consensus state is stored.

Returns

Response codes:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/upgrade/v1beta1/upgraded_consensus_state/{last_height}

Response example

{
"upgraded_consensus_state": "string"
}

/cosmos/authz/v1beta1/grants

Retrieves the list of Authorization, granted to the grantee by the granter.

Parameters


  • granter (string; query): a granter.
  • grantee (string; query): a grantee.
  • msg_type_url (string; query): define to retrieve the grants matching a given message type.
  • pagination.key (string; byte; query): key is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of the pagination parameters should be set — pagination.key or pagination.offset.
  • pagination.offset (string; uint64; query): offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of the pagination parameters should be set — pagination.key or pagination.offset.
  • pagination.limit (string; uint64; query): limit is the 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; query): count_total is 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.
  • pagination.reverse (boolean; query): reverse is set to true if results are to be returned in the descending order.

Returns

Response codes:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/authz/v1beta1/grants

Response example

{
"grants": [
{
"authorization": {
"type_url": "string",
"value": "string"
},
"expiration": "2023-03-02T12:52:34.325Z"
}
],
"pagination": {
"next_key": "string",
"total": "string"
}
}

/cosmos/feegrant/v1beta1/allowance/{granter}/{grantee}

Retrieves the fee granted to the grantee by the granter.

Parameters


  • granter (string; query): a granter.
  • grantee (string; query): a grantee.

Returns

Response codes:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/feegrant/v1beta1/allowance/{granter}/{grantee}

Response example

{
"allowance": {
"granter": "string",
"grantee": "string",
"allowance": {
"type_url": "string",
"value": "string"
}
}
}

/cosmos/feegrant/v1beta1/allowances/{grantee}

Retrieves all the grants for an address.

Parameters


  • grantee (string; query): a grantee.
  • pagination.key (string; byte; query): key is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of the pagination parameters should be set — pagination.key or pagination.offset.
  • pagination.offset (string; uint64; query): offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of the pagination parameters should be set — pagination.key or pagination.offset.
  • pagination.limit (string; uint64; query): limit is the 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; query): count_total is 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.
  • pagination.reverse (boolean; query): reverse is set to true if results are to be returned in the descending order.

Returns

Response codes:

  • 200 — success.
  • default — unexpected error.

Request example

curl https://rpc.ankr.com/http/scrt_cosmos/cosmos/feegrant/v1beta1/allowances/{grantee}

Response example

{
"allowances": [
{
"granter": "string",
"grantee": "string",
"allowance": {
"type_url": "string",
"value": "string"
}
}
],
"pagination": {
"next_key": "string",
"total": "string"
}
}