Cosmos Origin/Staking
GetDelegationByValidatorAddressDelegatorAddress
Consensus Client API Overview
Endpoints
- Cosmos Origin/Staking
- GETGetValidators
- GETGetValidatorByValidatorAddress
- GETGetValidatorDelegationsByValidatorAddress
- GETGetDelegationsByDelegatorAddress
- GETGetRedelegationsByDelegatorAddress
- GETGetValidatorsByDelegatorAddress
- GETGetValidatorsByDelegatorAddressValidatorAddress
- GETGetUnbondingDelegationsByDelegatorAddress
- GETGetStakingParams
- GETGetStakingPool
- GETGetHistoricalInfoByHeight
- GETGetDelegationByValidatorAddressDelegatorAddress
- GETGetValidatorUnbondingDelegations
- GETGetDelegatorUnbondingDelegation
- GET
- Cosmos Origin/Auth
- Cosmos Origin/Bank
- Cosmos Origin/Distribution
- Cosmos Origin/Mint
- Story Extend/Staking
Cosmos Origin/Staking
GetDelegationByValidatorAddressDelegatorAddress
GET
/
staking
/
validators
/
{validator_addr}
/
delegations
/
{delegator_addr}
curl --request GET \
--url https://api.storyapis.com/staking/validators/{validator_addr}/delegations/{delegator_addr}
{
"code": 200,
"msg": {
"delegation_response": {
"delegation": {
"delegator_address": "0xdb8e606ad7c02f37e43d10a10126791dc94b0434",
"validator_address": "0xdb8e606ad7c02f37e43d10a10126791dc94b0434",
"shares": "1000000.000000000000000000",
"rewards_shares": "1000000.000000000000000000"
},
"balance": {
"denom": "stake",
"amount": "1000000"
}
}
},
"error": ""
}
Path Parameters
validator_addr defines the validator address to query for.
delegator_addr defines the delegator address to query for.
Response
200 - application/json
curl --request GET \
--url https://api.storyapis.com/staking/validators/{validator_addr}/delegations/{delegator_addr}
{
"code": 200,
"msg": {
"delegation_response": {
"delegation": {
"delegator_address": "0xdb8e606ad7c02f37e43d10a10126791dc94b0434",
"validator_address": "0xdb8e606ad7c02f37e43d10a10126791dc94b0434",
"shares": "1000000.000000000000000000",
"rewards_shares": "1000000.000000000000000000"
},
"balance": {
"denom": "stake",
"amount": "1000000"
}
}
},
"error": ""
}