js-conflux-sdk
JavaScript Conflux Software Development Kit
Last updated 3 hours 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

JavaScript Conflux Software Development Kit

Installation

npm install js-conflux-sdk

Usage

api document

Nodejs

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

async function main() {
  const cfx = new Conflux({
    url: 'http://testnet-jsonrpc.conflux-chain.org:12537',
    defaultGasPrice: 100,
    defaultGas: 1000000,
    logger: console,
  });

  const balance = await cfx.getBalance('0xbbd9e9be525ab967e633bcdaeac8bd5723ed4d6b');
  console.log(balance); // 937499420597305000n
}

main();

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 cfx = new window.Conflux.Conflux({
    url: 'http://testnet-jsonrpc.conflux-chain.org:12537',
    defaultGasPrice: 100,
    defaultGas: 1000000,
    logger: console,
  });
</script>

Change log

see

Example

example

Current Tags

  • 0.13.1                                ...           latest (3 hours ago)

36 Versions

  • 0.13.1                                ...           3 hours ago
  • 0.13.0                                ...           a day ago
  • 0.12.0                                ...           4 days ago
  • 0.11.0                                ...           7 days ago
  • 0.10.3                                ...           11 days ago
  • 0.10.2                                ...           11 days ago
  • 0.10.1                                ...           16 days ago
  • 0.10.0-alpha                                ...           a month ago
  • 0.9.2                                ...           3 months ago
  • 0.9.1                                ...           3 months ago
  • 0.9.0-beta                                ...           3 months ago
  • 0.9.0-alpha                                ...           3 months ago
  • 0.8.0                                ...           3 months ago
  • 0.8.0-alpha                                ...           4 months ago
  • 0.7.5                                ...           5 months ago
  • 0.7.4                                ...           5 months ago
  • 0.7.3                                ...           5 months ago
  • 0.7.3-beta                                ...           5 months ago
  • 0.7.3-alpha                                ...           5 months ago
  • 0.7.2                                ...           5 months ago
  • 0.7.1                                ...           5 months ago
  • 0.7.0                                ...           5 months ago
  • 0.6.2                                ...           5 months ago
  • 0.6.1                                ...           5 months ago
  • 0.6.0                                ...           5 months ago
  • 0.6.0-alpha                                ...           6 months ago
  • 0.5.1                                ...           6 months ago
  • 0.5.0                                ...           6 months ago
  • 0.4.1                                ...           6 months ago
  • 0.4.0                                ...           6 months ago
  • 0.4.0-beta                                ...           6 months ago
  • 0.4.0-alpha                                ...           6 months ago
  • 0.3.3-alpha                                ...           6 months ago
  • 0.3.2                                ...           6 months ago
  • 0.3.2-alpha                                ...           6 months ago
  • 0.3.1                                ...           6 months ago
Downloads
Today 28
This Week 47
This Month 57
Last Day 2
Last Week 30
Last Month 42
Dependencies (7)
Dev Dependencies (17)

Copyright 2014 - 2016 © taobao.org |