Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/metaspan/dotsama-grapql
Graphql enspoint for Polkadot & Kusama
https://github.com/metaspan/dotsama-grapql
Last synced: 2 months ago
JSON representation
Graphql enspoint for Polkadot & Kusama
- Host: GitHub
- URL: https://github.com/metaspan/dotsama-grapql
- Owner: metaspan
- License: apache-2.0
- Created: 2022-08-15T14:32:26.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-23T12:55:25.000Z (8 months ago)
- Last Synced: 2024-08-02T19:33:01.744Z (5 months ago)
- Language: JavaScript
- Size: 97.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-dot - GraphQL Endpoint - A GraphQL Endpoint for Kusama. (Libraries / Multisig Wallets)
README
# dotsama-grapql
Graphql endpoint for Polkadot & Kusama
- Sandbox url: https://gql.metaspan.io
- Live api url: https://gql.metaspan.io/graphql## Status
- 1KV Candidates - mongodb (cached 30 mins, from upstream api)
- Validators - mongodb
- Nominators - mongodb
- Pools - mongodb
- Exposures - substrate.api## TODO
- other Objects in polkadot.js api...
- move the resolvers away from `mongodb` and onto `substrate.api`## Config
Read the [endpoints.js](./endpoints.js) file to see what endpoints are available.
Edit this file to match your `local` nodes.Create `.env` file with:
```env
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