dsys-api

Dsys API is a bridge connector bewteen chain and other offchain services, you'd better not run it seperately.

Usage no npm install needed!

<script type="module">
  import dsysApi from 'https://cdn.skypack.dev/dsys-api';
</script>

README

Dsys API

Dsys API is a bridge connector bewteen chain and other offchain services, you'd better not run it seperately.

Based on express and polkadot-js/api, connecting a running Dsys Node and hosting a RESTful api service.

Join to play

Go to Dsys Node, follow the README.

Building

Build from source

Make sure you have latest nodejs and yarn installed.

1. Install with yarn

yarn

2. Debug with nodemon

  • API_PORT: port number, default is: 56666
  • DSYS_WS_ADDRESS: dsys's websocket address, default is: ws://localhost:9944
yarn debug {API_PORT} {DSYS_WS_ADDRESS}

3. Build and start with original node

yarn build && yarn start {API_PORT} {DSYS_WS_ADDRESS}

Build from docker

Refer this to see how to build and run dsys api with docker.

Usage

Refer to this for more api details.

License

GPL v3