js-conflux-sdk

JavaScript Conflux Software Development Kit


Keywords
conflux, sdk, blockchain, js-conflux-sdk
License
LGPL-3.0
Install
npm install js-conflux-sdk@0.9.0-alpha

Documentation

js-conflux-sdk

JavaScript Conflux Software Development Kit

Installation

npm install js-conflux-sdk

Usage

api document

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();

Example

example