This repo contains several js-conflux-sdk
usage examples, which are are located at src
folder.
It also contain some contracts, they can be compiled by hardhat npx hardhat compile
.
Node.js is required to run the examples.
Install dependencies.
$ npm install
Add local env file
$ cp .env.example .env
Edit the options URL
, NETWORKID
, PRIVATE_KEY
in it.
Compile contracts
$ npx hardhat compile
You can get some testnet CFX from Conflux Testnet Faucet.
FluentWallet is required to use the faucet.