Staking info

Get staking information for a _Stash_ account.

get

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 · booleanOptional

When set to false, the claimedRewards field is not included in the response.

Default: true
Responses
200
successful operation
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"
      }
    ]
  }
}