Home

Awesome

dotsama-grapql

Graphql endpoint for Polkadot & Kusama

Status

TODO

Config

Read the endpoints.js file to see what endpoints are available. Edit this file to match your local nodes.

Create .env file with:

APOLLO_INTROSPECTION=true
APOLLO_PLAYGROUND=true
MONGODB_DB_NAME=mspn_io_api
MONGODB_URL=mongodb://mongo_user:mongo_passpass@localhost:27017/mongo_database
ENDPOINT=local|parity|etc

Start

node index.js

or

pm2 start --name dotsama-graphql index.js

Use the api

http://localhost:4000