Provides a collection of classes and methods to interact with the Cord network.
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
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.
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