Client
Table of Contents
This provides a default set of packages for use by clients of the Lisk network.
The |
Lisk Elements will include numerous different packages in the future which can be plugged in to applications as desired.
For enhanced usability Lisk Elements provides special wrapper packages such as lisk-client
, whose group packages are often used in the same context.
Installation
How to add Lisk client as a dependency of your project:
$ npm install @liskhq/lisk-client@4.0.0
Usage
How to import lisk-client
using the ES6 modules syntax:
import lisk from '@liskhq/lisk-client';
Alternatively, how to use Node.js modules:
const lisk = require('@liskhq/lisk-client');
Or if it is required, how to import the specific namespaced functionality is shown below:
import { APIClient, transactions } from '@liskhq/lisk-client';
// or
const { APIClient, transactions } = require('@liskhq/lisk-client');