github SimplyStaking/polkadot_api_server v1.23.1

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

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

Don't miss a new polkadot_api_server release

NewReleases is sending notifications on new releases.