• R/O
  • HTTP
  • SSH
  • HTTPS

Bytom-JS-SDK: Repository summary

It is a project for Bytom Chrome extension JS SDK https://bytom.github.io/Bytom-JS-SDK


Recent Commits RSS

Rev. Time Author Message
4053dd8 2019-05-08 14:57:38 Zhiting Lin master update document.
d7fb618 2019-05-08 14:51:24 Zhiting Lin update the JS SDK API
676fc44 2019-04-29 11:29:55 Zhiting Lin update the blockcenter js api.
6a806aa 2019-04-28 20:37:06 Zhiting Lin add the convertArgument function
d6e6789 2019-04-18 15:49:56 Zhiting Lin Add the doc page.
c7a66f5 2019-03-05 15:32:37 Zhiting Lin Merge pull request #1 from Bytom/wsmb Wsmb
d09f96f 2019-03-05 15:30:57 Zhiting Lin update timeout
079e125 2019-02-21 11:59:59 Zhiting Lin update the git reposity
770f8ca 2019-02-21 11:59:31 Zhiting Lin add the confirmation params
9d8f4d7 2019-02-15 11:33:07 Zhiting Lin Add the convert argument into transaction.

Branches

Name Rev. Time Author Message
master 4053dd8 2019-05-08 14:57:38 Zhiting Lin update document.

README.md

Bytom-JS-SDK

npm version

Install

bash npm install bytom-js-sdk

Use

```javascript 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.

Show on old repository browser