Returns delegate info for given validator delegator pair.
Parameters
Object Name | Required | Type | Detail |
---|---|---|---|
VALIDATOR_ADDR | ✅ | String | The validator address to query for. |
DELEGATOR_ADDR | ✅ | String | The delegator address to query. |
/cosmos/staking/v1beta1/validators/cosmosvaloper1sd4tl9aljmmezzudugs7zlaya7pg2895ws8tfs/delegations/cosmos1zqg753ll6zf85nzml67ure8zqqkpyvw85xxy5w
Result
The delegate info for given validator delegator pair.
Example
Request
curl <your-rest-endpoint>/cosmos/staking/v1beta1/validators/cosmosvaloper1sd4tl9aljmmezzudugs7zlaya7pg2895ws8tfs/delegations/cosmos1zqg753ll6zf85nzml67ure8zqqkpyvw85xxy5w \
-X GET \
-H "accept: application/json"
Return
{
"delegation_response": {
"delegation": {
"delegator_address": "cosmos1zqg753ll6zf85nzml67ure8zqqkpyvw85xxy5w",
"validator_address": "cosmosvaloper1sd4tl9aljmmezzudugs7zlaya7pg2895ws8tfs",
"shares": "10000000.000000000000000000"
},
"balance": {
"denom": "uatom",
"amount": "10000000"
}
}
}