Staking info
Returns information about a Stash account's staking activity. Replaces /staking/{address}
from versions < v1.0.0. The Stash account can be either a validator or nominator account.
Path parameters
accountIdstring · SS58Required
SS58 address of the account. Must be a Stash account.
Query parameters
atstring · unsignedInteger or $hexOptional
Block identifier, as the block height or block hash.
includeClaimedRewardsstring · booleanOptionalDefault:
When set to false
, the claimedRewards
field is not included in the response.
true
Responses
200
successful operation
application/json
400
invalid blockId supplied for at query param
application/json
404
account not found
application/json
get
GET /accounts/{accountId}/staking-info HTTP/1.1
Host: dot-playbook.nownodes.io
Accept: */*
{
"at": {
"hash": "text",
"height": "text"
},
"rewardDestination": "Staked",
"controller": "text",
"numSlashingSpans": "text",
"nominations": {
"targets": [
"text"
],
"submittedIn": "text",
"suppressed": true
},
"staking": {
"stash": "text",
"total": "text",
"active": "text",
"unlocking": "text",
"claimedRewards": [
{
"era": "text",
"status": "claimed"
}
]
}
}