For the best viewing experience, please turn your phone to portrait mode.

Lisk Elements Packages

This section details how to use Lisk Elements, once you have successfully installed it.

Usage

Packages

Usage

Node.js

Simply import (or require) the package and access its functionality according to the relevant namespace.
Example for client package

import lisk from '@liskhq/lisk-client';
//or
const lisk = require('@liskhq/lisk-client');
const transaction = lisk.transaction.transfer({
    amount: '100000000',
    recipientId: '15434119221255134066L',
    passphrase: 'robust swift grocery peasant forget share enable convince deputy road keep cheap',
});

Browser

Load the Lisk Elements script via our CDN. For example to load the minified version 1.1.0 of Lisk Elements include the following script, which will then expose the lisk variable:

<script src="https://js.lisk.io/lisk-client-1.1.0.min.js"></script>
<script>
    const transaction = lisk.transaction.transfer({
        amount: '100000000',
        recipientId: '15434119221255134066L',
        passphrase: 'robust swift grocery peasant forget share enable convince deputy road keep cheap',
    });
</script>

What's next?
API Client