Wondering what’s next for npm?Check out our public roadmap! »

js-conflux-sdkTypeScript icon, indicating that this package has built-in type declarations

0.7.0 • Public • Published

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

Keywords

Install

npm i [email protected]

Version

0.7.0

License

LGPL-3.0

Unpacked Size

5.62 MB

Total Files

47

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar