dscp-node 4.4.3
Install from the command line:
Learn more about npm packages
$ npm install @digicatapult/dscp-node@4.4.3
Install via package.json:
"@digicatapult/dscp-node": "4.4.3"
About this version
A package for building a thin polkadot.js
API that includes the additional types of dscp-node
, to be used when interacting with the node.
Building an API with @digicatapult/dscp-node
:
const { buildApi } = require('@digicatapult/dscp-node')
const { api, types, keyring } = buildApi({
options: {
apiHost: 'localhost',
apiPort: 9944,
},
})
The following options
can be configured:
variable | required | default | description |
---|---|---|---|
apiHost | N | localhost |
The hostname of the dscp-node the API should connect to |
apiPort | N | 9944 |
The port of the dscp-node the API should connect to |