dhive-sl
Client library for the Hive blockchain & Hive Engine layer2.
Installation
npm install dhive-sl
Usage
import { Client } from 'dhive-sl';
const main = async () => {
const client = new Client()
const account = await client.database.getAccount('splinterlands')
const encoded = await client.memo.encode('test', 'pub-key-B', 'private-key-A')
const decoded = await client.memo.decode(encoded, 'private-key-B')
const block = await client.engine.blockchain.getLatestBlock()
};
main();
Note
This version is a fork of dhive, which was originally created by Johan Nordberg in 2017 and maintained since 2021 by the Hive community.
dhive-sl
was forked to improve dhive as well as merge the functionality of & improve upon hive-js, sscjs and hive-interface.