js-conflux-sdk
JavaScript Conflux Software Development Kit
Last updated 5 months ago by geekberry .
LGPL-3.0 · Repository · Original npm · Tarball · package.json
$ cnpm install js-conflux-sdk 
SYNC missed versions from official npm registry.

js-conflux-sdk

npm npm

JavaScript Conflux Software Development Kit

1.0 Key features

  1. Add cfx.wallet to manage multiple accounts, which has replace v0.13's cfx.Account.
  2. Add cfx.InternalContract(name) to interact with Conflux internal contracts.
  3. Add websocket provider, support pub/sub
  4. Provide Drip to easily convert unit between CFX, Drip, Gdrip
  5. Use JSBI for front-end, native BigInt for back-end

Check the complete changelog

Quick Usage

Nodejs

const { Conflux } = require('js-conflux-sdk');

const conflux = new Conflux({
  url: 'http://test.confluxrpc.org',
  logger: console, // for debug
});

require deep nested file/dir

const util = require('js-conflux-sdk/src/util');

Frontend

umd

import { Conflux } from 'js-conflux-sdk/dist/js-conflux-sdk.umd.min.js';

or if your bundler supports the browser field in package.json

import { Conflux } from 'js-conflux-sdk';

or

<script type="text/javascript" src="node_modules/js-conflux-sdk/dist/js-conflux-sdk.umd.min.js"></script>
<script type="text/javascript">
  const conflux = new window.Conflux.Conflux({
    url: 'http://test.confluxrpc.org',
    logger: console,
  });
</script>

Documentation

TODO

Current Tags

  • 1.1.4                                ...           latest (2 days ago)

57 Versions

  • 1.1.4                                ...           2 days ago
  • 1.1.3                                ...           4 days ago
  • 1.1.2                                ...           7 days ago
  • 1.1.1                                ...           10 days ago
  • 1.1.0                                ...           16 days ago
  • 1.0.2                                ...           17 days ago
  • 1.0.1                                ...           24 days ago
  • 1.0.0 [deprecated]           ...           25 days ago
  • 1.0.0-beta.3                                ...           a month ago
  • 1.0.0-beta.2                                ...           a month ago
  • 1.0.0-beta.1                                ...           a month ago
  • 0.13.6                                ...           a month ago
  • 1.0.0-beta.0                                ...           a month ago
  • 0.13.5                                ...           2 months ago
  • 1.0.0-alpha.4                                ...           3 months ago
  • 1.0.0-alpha.3                                ...           3 months ago
  • 1.0.0-alpha.2                                ...           3 months ago
  • 1.0.0-alpha.1                                ...           3 months ago
  • 0.13.4                                ...           4 months ago
  • 0.13.3                                ...           4 months ago
  • 0.13.2                                ...           4 months ago
  • 0.13.1                                ...           5 months ago
  • 0.13.0                                ...           5 months ago
  • 0.12.0                                ...           5 months ago
  • 0.11.0                                ...           5 months ago
  • 0.10.3                                ...           5 months ago
  • 0.10.2                                ...           5 months ago
  • 0.10.1                                ...           5 months ago
  • 0.10.0-alpha                                ...           6 months ago
  • 0.9.2                                ...           7 months ago
  • 0.9.1                                ...           8 months ago
  • 0.9.0-beta                                ...           8 months ago
  • 0.9.0-alpha                                ...           8 months ago
  • 0.8.0                                ...           8 months ago
  • 0.8.0-alpha                                ...           9 months ago
  • 0.7.5                                ...           9 months ago
  • 0.7.4                                ...           10 months ago
  • 0.7.3                                ...           10 months ago
  • 0.7.3-beta                                ...           10 months ago
  • 0.7.3-alpha                                ...           10 months ago
  • 0.7.2                                ...           10 months ago
  • 0.7.1                                ...           10 months ago
  • 0.7.0                                ...           10 months ago
  • 0.6.2                                ...           10 months ago
  • 0.6.1                                ...           10 months ago
  • 0.6.0                                ...           10 months ago
  • 0.6.0-alpha                                ...           10 months ago
  • 0.5.1                                ...           10 months ago
  • 0.5.0                                ...           a year ago
  • 0.4.1                                ...           a year ago
  • 0.4.0                                ...           a year ago
  • 0.4.0-beta                                ...           a year ago
  • 0.4.0-alpha                                ...           a year ago
  • 0.3.3-alpha                                ...           a year ago
  • 0.3.2                                ...           a year ago
  • 0.3.2-alpha                                ...           a year ago
  • 0.3.1                                ...           a year ago

Copyright 2014 - 2017 © taobao.org |