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
. Theaccount_address
parameter has been changed toaccount_id
and the optional parameterera_index
has been added./api/query/staking/currentElected
has been changed to/api/derive/staking/validators
. The new endpoint now returns bothvalidators
, the list of validators which are active in the currentsession
, as well asnextElected
, the list ofvalidators
which will be active in the nextsession
.
Additions:
/api/query/staking/activeEra
has been added, which returns theindex
andstart
of theactive 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