daocube-nuls-sdk-js
v2.5.4
Published
daocube-nuls-sdk-js nuls nuls-js nuls-sdk nuls-js-sdk
Downloads
2
Maintainers
Readme
Install
$ npm i daocube-nuls-sdk-js
Usage
const nuls = require('./index');
let chainId = 1; //链ID 1:NULS主网 2:NULS测试网 3以上其他链
let passWord = "";
let prefix = "NULS"; //链前缀
//创建地址
const newAddress = nuls.newAddress(chainId, passWord, prefix);
console.log(newAddress);
//导入地址
const key ="";
const importAddress = nuls.importByKey(chainId, key, passWord,prefix);
console.log(importAddress);
# Support
http://daocube.io