2 [![npm version](https://img.shields.io/npm/v/bytom-js-sdk.svg?style=flat-square)](https://www.npmjs.com/package/bytom-js-sdk)
7 npm install bytom-js-sdk
14 main: "http://main-net-host/",
15 test: "http://test-net-host/"
17 let bytom = new Bytom(net, chrome.runtime.getURL("main.wasm"));
19 //set Bytom net type (main test), default main net.
20 bytom.setNetType('test');
21 console.log(bytom.getNetType());
24 bytom.sdk.keys.create("test_alias", "123456").then((res)=>{
33 Project depends on WebAssembly. \
34 See [Bytom-WebAssembly](https://github.com/oysheng/Bytom-WebAssembly).