paritytech / substrate-api-sidecar

REST service that makes it easy to interact with blockchain nodes built using Substrate's FRAME framework.

Home Page:https://paritytech.github.io/substrate-api-sidecar/dist/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add nominations to the `GET /accounts/{accountId}/staking-info` endpoint as per stated in the docs

IkerAlus opened this issue · comments

commented

The docs state that the GET /accounts/{accountId}/staking-info endpoint returns and entry for the nominations of the queried stash account.

As we can see in the relevant code of the endpoint, this is not the case right now. We should make sure the entry is added into the endpoint output, to inform the user about the active nominations of the relevant stash account.