nerve-sdk-js

1.0.41 • Public • Published

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);


Package Sidebar

Install

npm i nerve-sdk-js

Weekly Downloads

23

Version

1.0.41

License

ISC

Unpacked Size

726 kB

Total Files

154

Last publish

Collaborators

  • huangsheng912
  • aaron018