Skip to content
dscp-node / 3.6.0

dscp-node 3.6.0

Install from the command line:
Learn more about npm packages
$ npm install @digicatapult/dscp-node@3.6.0
Install via package.json:
"@digicatapult/dscp-node": "3.6.0"

About this version

@digicatapult/dscp-node

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,
    metadataKeyLength: 32,
    metadataValueLiteralLength: 32,
    processorIdentifierLength: 32,
  },
})

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
metadataKeyLength N 32 Fixed length of dscp-node metadata key type
metadataValueLiteralLength N 32 Fixed length of dscp-node metadata LITERAL value type
processorIdentifierLength N 32 Fixed length of dscp-node process identifier type

Details


Assets

  • dscp-node-3.6.0-npm.tgz

Download activity

  • Total downloads 7
  • Last 30 days 0
  • Last week 0
  • Today 0