js-conflux-sdk
JavaScript Conflux Software Development Kit
Installation
npm install js-conflux-sdk
Usage
Nodejs
const Conflux = ; { const cfx = url: 'http://testnet-jsonrpc.conflux-chain.org:12537' defaultGasPrice: 100 defaultGas: 1000000 logger: console ; const balance = await cfx; console; // 937499420597305000n} ;
require deep nested file/dir
const util = ;
Frontend
esm
;;
Note: This assumes bundler will read the package.json browser field as module entry. For bundlers don't support that, additional configurations needs to be add to support that. Please checkout the bundlers documentation.
umd
;
or