/cord.js

Cord JS API

Primary LanguageTypeScriptApache License 2.0Apache-2.0

CORD.js

Provides a collection of classes and methods to interact with the Cord network.

Build to see changes

Clone this repo and navigate into it.

yarn

Note that before you see your changes from the SDK, you have to build it by executing a build:

yarn build

Experiment the SDK methods

Once the build of the package is complete (with yarn build), one can try the below methods to check if methods are working.

Note: Ensure the cord instance is running locally by following the README.md under the CORD repo. Follow the instructions under the topic - "Run the node."


$ yarn demo-statement

$ yarn demo-network-score

$ yarn demo-asset

The output of these runs are self-explanatory. For reference of how this is structured, you can refer to the source of the demo scripts.

To consume SDK in your project

Install the SDK by running the following commands in your project directory

npm install @cord.network/sdk

Or with yarn:

yarn add @cord.network/sdk