0.0.7 • Published 5 years ago

qlc.js v0.0.7

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

qlc.js

QLC Chain JavaScript API

Installation

  1. Install via npm npm i qlc.js

  2. Run go-qlc node (https://github.com/qlcchain/go-qlc/releases)

Usage

import { httpProvider } from 'qlc.js/provider/HTTP'; import Client from 'qlc.js/client'; import { methods } from 'qlc.js/common';

rpcUrl = '127.0.0.1:9735';

private HTTP_RPC = new httpProvider(this.rpcUrl); private c = new Client(this.HTTP_RPC, () => {});

async accountInfo(account): Promise<{ result: any ; error?: any }> { try { return await this.c.request( methods.ledger.accountInfo, account ); } catch (error) { return error; } }

API documentation

https://github.com/qlcchain/go-qlc/wiki/RPC-API

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago