Contrast with web3.js
Install
Import & initialize
// In Node.js use: const Web3 = require('web3');
const web3 = new Web3(Web3.givenProvider || "ws://localhost:8545");const { Conflux } = require('js-conflux-sdk');
// In browser: const Conflux = window.TreeGraph.Conflux;
const conflux = new Conflux({
url: "https://test.confluxrpc.com",
networkId: 1
});Invoke client's RPC method
Account manage
Sending Transactions
Tx state checker
Interact with contract
Deploy contract
Call methods
Update contract state
Utilities
Unit convert
hex encoding
keccak
Last updated
Was this helpful?