This release includes the latest stable version of the @polkadot/api
package, v1.9.1
.
Changes:
Additions:
/api/query/staking/erasRewardPoints
has been added, which returns thetotal
andindividual
rewards in the specifiedera index
, or in theactive
one if it is not specified./api/query/staking/erasValidatorReward
has been added, which returns the total validator era payout in the specifiedera index
, or in the last finished era (active era - 1) if it is not specified.
To update to the latest release:
If running Polkadot API Server from source:
git pull
npm ci
# stop the older instance of the API Server
bash run_api.sh
If running as a Docker image
docker ps
docker stop <CONTAINER ID of the older release of the API Server>
docker run -p 3000:3000 \
-v <CONFIG_DIR>:/opt/polkadot_api_server/config:ro \
-d simplyvc/polkadot_api_server:1.9.1