• 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
48d2b86 2020-11-13 11:08:51 Zhiting Lin master Merge pull request #2 from Bytom/dev Dev
df63d72 2020-11-13 11:07:39 Zhiting Lin dev update the derivation path are null.
eaab80d 2020-11-03 15:51:29 Zhiting Lin update list delay transactions.
3b77f6f 2020-10-22 12:05:18 Zhiting Lin update list account for v2 structure and before.
d280896 2020-09-09 15:40:47 Zhiting Lin update error code
779d372 2020-09-09 10:52:01 Zhiting Lin update the sign transaction and sign message js function
1f9f7d3 2020-09-03 11:01:10 Zhiting Lin update the method for verify password
7214ee7 2020-08-26 15:07:51 Zhiting Lin update selection
78bc5c2 2020-08-25 17:33:41 Zhiting Lin update v3.0.0 for product
e265507 2020-08-25 16:56:48 Zhiting Lin update key relavant logic

Branches

Name Rev. Time Author Message
master 48d2b86 2020-11-13 11:08:51 Zhiting Lin Merge pull request #2 from...
dev df63d72 2020-11-13 11:07:39 Zhiting Lin update the derivation path ...

README.md

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.

Show on old repository browser