#
Installing verusid-ts-client
In
#
Prerequisites
The verusid-ts-client is installed using yarn
CLI.
Only yarn is supported at the moment
#
Install
To install the verusid-ts-client in your javascript project run
yarn add https://github.com/VerusCoin/verusid-ts-client.git
#
Usage
#
Initializing the VerusID Interface
import VerusIdInterface from 'verusid-ts-client';
import { AxiosRequestConfig } from 'axios';
const config: AxiosRequestConfig = {/* Axios configuration */};
const verusIdClient = new VerusIdInterface('root-system-currency-id', 'http://your-verusd-node.com', config);
This will allow the verusid-ts-client
to connect to the verus blockchain. You can connect it directly to a node that you host or to web hosted API endpoint e.g. https://api.verus.services