Sign inSign up

parity/substrate-api-sidecar

By parity

Updated 5 months ago

REST service to interact with blockchain nodes built using Substrate's FRAME framework.

Image
3

100K+

parity/substrate-api-sidecar repository overview

substrate-api-sidecar Docker Image

With each release, the maintainers publish a docker image to dockerhub at parity/substrate-api-sidecar

Pull the latest release
docker pull docker.io/parity/substrate-api-sidecar:latest

The specific image tag matches the release version.

Or build from source
yarn build:docker
Run
# For default use run:
docker run --rm -it --read-only -p 8080:8080 substrate-api-sidecar

# Or if you want to use environment variables set in `.env.docker`, run:
docker run --rm -it --read-only --env-file .env.docker -p 8080:8080 substrate-api-sidecar

NOTE: While you could omit the --read-only flag, it is strongly recommended for containers used in production.

then you can test with:

curl -s http://0.0.0.0:8080/blocks/head | jq

N.B. The docker flow presented here is just a sample to help get started. Modifications may be necessary for secure usage.

Tag summary

Content type

Image

Digest

sha256:31d812228

Size

253.3 MB

Last updated

5 months ago

docker pull parity/substrate-api-sidecar:master-70ef3032