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

TAC — Cosmos REST methods (1/4)

API reference for TAC. All methods ->

Part 1 of 4: 1 · 2 · 3 · 4

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

Retrieves the rewards of a validator address.

Parameters​

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

Returns​

Total outstanding rewards for a validator.

Request example​

curl https://rpc.ankr.com/http/tac_turin_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; required): a 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): a 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): a 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): a 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.

Request example​

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

Response example​

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

Evidence methods​

/cosmos/evidence/v1beta1/evidence​

Retrieves all evidence.

Parameters​

  • pagination.key (string, byte): a 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): a 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): a 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.

Request example​

curl https://rpc.ankr.com/http/tac_turin_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): the hash of the requested evidence.

Returns​

Evidence for a given hash.

Request example​

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

Response example​

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

Gov methods​

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

Retrieves all parameters of the gov module.

Parameters​

  • params_type (string, required): parameters to query for; possible values: voting, tallying, or deposit.

Returns​

Parameters of the gov module.

Request example​

curl https://rpc.ankr.com/http/tac_turin_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: defines status of the proposals. See below for different options. Default value = PROPOSAL_STATUS_UNSPECIFIED. Other statuses:
    • 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): a 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): a 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): a 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.

Request example​

curl https://rpc.ankr.com/http/tac_turin_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": "2021-01-19T03:03:05.413Z",
"deposit_end_time": "2021-01-19T03:03:05.413Z",
"total_deposit": [
{
"denom": "string",
"amount": "string"
}
],
"voting_start_time": "2021-01-19T03:03:05.413Z",
"voting_end_time": "2021-01-19T03:03:05.413Z"
}
],
"pagination": {
"next_key": "string",
"total": "string"
}
}

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

Retrieves proposal details based on ProposalID.

Parameters​

  • proposal_id (string; required): a unique id of the proposal.

Returns​

Proposal details based on proposalID.

Request example​

curl https://rpc.ankr.com/http/tac_turin_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": "2021-01-19T03:30:27.807Z",
"deposit_end_time": "2021-01-19T03:30:27.807Z",
"total_deposit": [
{
"denom": "string",
"amount": "string"
}
],
"voting_start_time": "2021-01-19T03:30:27.807Z",
"voting_end_time": "2021-01-19T03:30:27.807Z"
}
}

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

Retrieves all deposits of a single proposal.

Parameters​

  • proposal_id (string, uint64; required): a unique id of the proposal.
  • pagination.key (string, byte): a 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): a 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): a 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 deposits based on a proposalID.

Request example​

curl https://rpc.ankr.com/http/tac_turin_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 proposalID and depositAddr.

Parameters​

  • proposal_id (string, uint64): a required unique id of the proposal.
  • depositor (string): the deposit addresses from the proposals.

Returns​

Single deposit based on a proposalID.

Request example​

curl https://rpc.ankr.com/http/tac_turin_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): a required unique ID of the proposal.

Returns​

Tally of proposal vote.

Request example​

curl https://rpc.ankr.com/http/tac_turin_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), required): a unique id of the proposal
  • pagination.key (string, byte): a 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): a 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): a 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​

Votes for a given proposal.

Request example​

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

Response example​

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

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

Retrieves voted information based on proposalID and voterAddr.

Parameters​

  • proposal_id (string, uint64; required): a unique ID of the proposal.
  • voter (string): the other address for the proposals.

Returns​

Votes for a given proposal.

Request example​

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

Response example​

{
"vote": {
"proposal_id": "string",
"voter": "string",
"option": "VOTE_OPTION_UNSPECIFIED"
}
}

Mint methods​

/cosmos/mint/v1beta1/annual_provisions​

Retrieves the current minting annual provisions value.

Parameters​

None.

Returns​

Value of minting annual provisions.

Request example​

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

Response example​

{
"error": "string",
"code": 0,
"message": "string",
"details": [
{
"type_url": "string",
"value": "string"
}
]
}

/cosmos/mint/v1beta1/inflation​

Retrieves the current minting inflation value.

Parameters​

None.

Returns​

Current minting inflation value.

Request example​

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

Response example​

{
"inflation": "string"
}

/cosmos/mint/v1beta1/params​

Retrieves the total set of minting parameters

Parameters​

None.

Returns​

Total set of minting params.

Request example​

curl https://rpc.ankr.com/http/tac_turin_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"
}
}

Slashing methods​

/cosmos/slashing/v1beta1/params​

Retrieves the slashing module parameters.

Parameters​

None.

Returns​

The parameters of a slashing module.

Request example​

curl https://rpc.ankr.com/http/tac_turin_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): a 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): a 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): a 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​

The signing info of all validators.

Request example​

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

Response example​

{
"info": [
{
"address": "string",
"start_height": "string",
"index_offset": "string",
"jailed_until": "2021-01-19T06:33:32.230Z",
"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, required): an address to query signing info for.

Returns​

The signing info of all specified cons address.

Request example​

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

Response example​

{
"val_signing_info": {
"address": "string",
"start_height": "string",
"index_offset": "string",
"jailed_until": "2021-01-19T06:34:40.106Z",
"tombstoned": true,
"missed_blocks_counter": "string"
}
}

Staking methods​

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

Retrieves all delegations of a given delegator address.

Parameters​

  • delegator_addr (string, required): a delegator address to query for.
  • pagination.key (string, byte): a 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): a 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): a 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​

Delegations from a specific delegator address.

Request example​

curl https://rpc.ankr.com/http/tac_turin_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 the redelegations of a given address.

Parameters​

  • delegator_addr (string, required): a delegator address to query for.
  • src_validator_addr (string): the validator address to redelegate from.
  • dst_validator_addr (string): the validator address to redelegate to.
  • pagination.key (string, byte): a 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: a 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): a 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​

Delegations from a specific delegator address.

Request example​

curl https://rpc.ankr.com/http/tac_turin_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": "2021-01-19T06:58:45.718Z",
"initial_balance": "string",
"shares_dst": "string"
}
]
},
"entries": [
{
"redelegation_entry": {
"creation_height": "string",
"completion_time": "2021-01-19T06:58:45.718Z",
"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, required): a delegator address to query for.
  • pagination.key (string, byte): a 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): a 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): a 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​

Unbonding delegations from a specific delegator address.

Request example​

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

Response example​

{
"unbonding_responses": [
{
"delegator_address": "string",
"validator_address": "string",
"entries": [
{
"creation_height": "string",
"completion_time": "2021-01-19T07:01:25.628Z",
"initial_balance": "string",
"balance": "string"
}
]
}
],
"pagination": {
"next_key": "string",
"total": "string"
}
}