1.0.10 • Published 1 year ago

@sinohope/js-sdk v1.0.10

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

This project is an JS SDK for Sinohope WaaS API.

@sinohope/js-sdk

Installation

npm i @sinohope/js-sdk

Usage

import { ListMpcRequests, Status } from '@sinohope/js-sdk';

async function main() {
    const url =
        'the url of mpc node server;
    const privKey =
        'asn1 hex private key';
    const pubKey =
        'asn1 hex public key';
    let api = new ListMpcRequests(url, privKey, pubKey);
    let data = await api.request({
        sinoId: null,
        pageIndex: 1,
        pageSize: 50,
    });
    console.log({ data });

    api = new Status(url, privKey, pubKey);
    data = await api.request();
    console.log({ data });
}

main();

LICENSE

This library is free and open-source software released under the LGPL-3.0 license.

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago