Skip to content

Releases: SimplyStaking/polkadot_api_server

v1.29.1

23 Jul 15:39
8d4014f
Compare
Choose a tag to compare

Released on 23rd July 2021

  • Updated @polkadot/api and @polkadot/api-derive packages to v5.1.1.
  • Updated node version in dockerfile to v14.

Update Instructions

If running from source

git pull
npm ci
# stop the older instance of the API Server
bash run_api.sh

If running as a Docker image

git pull
docker ps
docker stop <CONTAINER ID of the older release of the API Server>
docker build -t simplyvc/polkadot_api_server:1.29.1 .
docker run -p 3000:3000 \
    -v <CONFIG_DIR>:/opt/polkadot_api_server/config:ro \
    -d simplyvc/polkadot_api_server:1.29.1

v1.28.1

07 May 11:36
e783ddd
Compare
Choose a tag to compare

Released on 7th May 2021

Updated @polkadot/api and @polkadot/api-derive packages to v4.9.2.

Update Instructions

If running from source

git pull
npm ci
# stop the older instance of the API Server
bash run_api.sh

If running as a Docker image

git pull
docker ps
docker stop <CONTAINER ID of the older release of the API Server>
docker build -t simplyvc/polkadot_api_server:1.28.1 .
docker run -p 3000:3000 \
    -v <CONFIG_DIR>:/opt/polkadot_api_server/config:ro \
    -d simplyvc/polkadot_api_server:1.28.1

v1.27.1

13 Apr 11:49
89981ad
Compare
Choose a tag to compare

Released on 13th April 2021

  • Updated @polkadot/api and @polkadot/api-derive packages to v4.3.1.
  • Added staking/bonded. This returns the controller account assigned to the stash account with the specified account_id.
  • Added staking/payee. This returns the reward destination address assigned to the stash with the specified account_id.
  • Added staking/validators. This returns the preferences of the validator whose stash is the specified account_id.

Update Instructions

If running from source

git pull
npm ci
# stop the older instance of the API Server
bash run_api.sh

If running as a Docker image

git pull
docker ps
docker stop <CONTAINER ID of the older release of the API Server>
docker build -t simplyvc/polkadot_api_server:1.27.1 .
docker run -p 3000:3000 \
    -v <CONFIG_DIR>:/opt/polkadot_api_server/config:ro \
    -d simplyvc/polkadot_api_server:1.27.1

v1.26.1

28 Jan 19:46
Compare
Choose a tag to compare

Released on 28th January 2021

  • Added the staking/unappliedSlashes. This returns all the unapplied slashes in the specified era, or the active era if an era index is not specified.
  • Fixed width of images in the documentation.
  • Updated @polkadot/api and @polkadot/api-derive packages to v3.6.4.

Update Instructions

If running from source

git pull
npm ci
# stop the older instance of the API Server
bash run_api.sh

If running as a Docker image

git pull
docker ps
docker stop <CONTAINER ID of the older release of the API Server>
docker build -t simplyvc/polkadot_api_server:1.26.1 .
docker run -p 3000:3000 \
    -v <CONFIG_DIR>:/opt/polkadot_api_server/config:ro \
    -d simplyvc/polkadot_api_server:1.26.1

v1.25.1

15 Oct 06:54
716a71d
Compare
Choose a tag to compare

Released on 15th October 2020

  • Updated @polkadot/api and @polkadot/api-derive packages to v2.2.1.
  • Since provider.isConnected is now a variable in the polkadot-js/api packages, we updated this in the server code.

If running 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.25.1

v1.24.1

12 Oct 07:14
6429554
Compare
Choose a tag to compare

Released on 12th October 2020

  • Updated @polkadot/api and @polkadot/api-derive packages to v2.1.1.

How to Upgrade

If running 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.24.1

v1.23.1

10 Jul 13:19
363a5fc
Compare
Choose a tag to compare

Released on 10th July 2020

  • Included the --rpc-cors=all flag in the INSTALL_AND_RUN.md guide. Note: All nodes to be added to the API server must run with this flag.
  • Updated @polkadot/api and @polkadot/api-derive packages to v1.23.1.
  • Code refactoring.
  • All endpoints now clear the timers to avoid memory leaks.
  • Every endpoint will now return a Lost connection with node. error message whenever the Web socket connection is lost with the querying node.

To update to the latest release

First make sure that all the nodes which you are going to add to the API server are running with --rpc-cors=all flag.

Now, follow one of the guides below depending on whether you are running the API server from source or using docker.

From source

git pull
npm ci
# stop the older instance of the API Server
bash run_api.sh

Using Docker

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

v1.18.1

09 Jun 13:23
5e1a23a
Compare
Choose a tag to compare

This release includes the latest stable versions of the @polkadot/api and @polkadot/api-derive packages, v1.18.1.

To update to the latest release

If running 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.18.1

v1.16.1

27 May 15:55
e4223d6
Compare
Choose a tag to compare

This release includes the latest stable versions of the @polkadot/api and @polkadot/api-derive packages, v1.16.1.

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

v1.13.1

07 May 10:56
Compare
Choose a tag to compare

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

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