Ckbox
Ckbox provides convenient APIs to interact with the Nervos CKB.
- CoinClient: Transfer the ckb. Issue and transfer the sUDT. Get the balance.
- ContractClient: Deploy and upgrade the contract.
- DaoClient: Depost, withdraw and unclock the DAO.
Examples
Building
Requirements
sudo apt-get update
sudo apt install nodejs
npm install --global yarn
sudo apt install build-essential
Install
yarn
Build
yarn build
Test
yarn test
Format
yarn fmt
Installing the package
Install from the command line:
$ npm install @felicityin/ckbox@1.0.0
Install via package.json:
"@felicityin/ckbox": "1.0.0"