Delegations

DelegatorDelegations queries all delegations of a given delegator address.

When called from another module, this query might consume a high amount of gas if the pagination field is incorrectly set.

GEThttps://tia-rest.nownodes.io/cosmos/staking/v1beta1/delegations/{delegator_addr}
Path parameters
delegator_addr*string

delegator_addr defines the delegator address to query for.

Query parameters
Response

A successful response.

Body
delegation_responsesarray of object

delegation_responses defines all the delegations' info of a delegator.

paginationobject

pagination defines the pagination in the response.

Request
const response = await fetch('https://tia-rest.nownodes.io/cosmos/staking/v1beta1/delegations/{delegator_addr}', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "delegation_responses": [
    {
      "delegation": {
        "delegator_address": "text",
        "validator_address": "text",
        "shares": "text"
      },
      "balance": {
        "denom": "text",
        "amount": "text"
      }
    }
  ],
  "pagination": {
    "next_key": "Ynl0ZXM=",
    "total": "text"
  }
}