bytom-js-sdk

1.4.0 • Public • Published

Bytom-JS-SDK

npm version

Install

npm install bytom-js-sdk

Use

let net = {
    main: "http://main-net-host/",
    test: "http://test-net-host/"
};
let bytom = new Bytom(net, chrome.runtime.getURL("main.wasm"));
 
//set Bytom net type (main test), default main net.
bytom.setNetType('test');
console.log(bytom.getNetType());
 
//create key
bytom.sdk.keys.create("test_alias", "123456").then((res)=>{
    console.log(res)
}).catch(error => {
    console.log(error)
});

WebAssembly build

Project depends on WebAssembly.
See Bytom-WebAssembly.

Readme

Keywords

Package Sidebar

Install

npm i bytom-js-sdk

Weekly Downloads

0

Version

1.4.0

License

MIT

Unpacked Size

55.4 kB

Total Files

21

Last publish

Collaborators

  • shijianzhiwai