nerve-sdk-js
v1.0.45
Published
nerve nerve-js nerve-sdk nerve-js-sdk
Downloads
78
Readme
Install
$ npm i nerve-sdk-js
build
webpack --mode production --config webpack.conf.js --progress
Usage
const nerve = require('./index');
// 指定网络环境 testnet/mainnet/customnet
nerve.testnet();
let chainId = nerve.chainId(); //链ID 9:NVT主网 5:TNVT测试网
let passWord = "";
let prefix = "TNVT"; //链前缀
//创建地址
const newAddress = nerve.newAddress(chainId, passWord, prefix);
console.log(newAddress);
//导入地址
const key ="";
const importAddress = nerve.importByKey(chainId, key, passWord,prefix);
console.log(importAddress);