github SimplyStaking/polkadot_api_server v1.8.1

latest releases: v1.29.1, v1.28.1, v1.27.1...
4 years ago

This release includes the latest stable version of the @polkadot/api package, v1.8.1.

Changes:

Breaking Changes:

  • /api/query/staking/stakers has been changed to /api/query/staking/erasStakers. The account_address parameter has been changed to account_id and the optional parameter era_index has been added.
  • /api/query/staking/currentElected has been changed to /api/derive/staking/validators. The new endpoint now returns both validators, the list of validators which are active in the current session, as well as nextElected, the list of validators which will be active in the next session.

Additions:

  • /api/query/staking/activeEra has been added, which returns the index and start of the active era

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.8.1

Don't miss a new polkadot_api_server release

NewReleases is sending notifications on new releases.