• R/O
  • HTTP
  • SSH
  • HTTPS

Bytom-JS-SDK: Zusammenfassung des Repository

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


Neueste Commits RSS

Rev. Zeit Autor Nachricht
779d372 2020-09-09 10:52:01 Zhiting Lin dev 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
ad1283d 2020-08-05 10:56:27 Zhiting Lin update copy account
b2e4882 2020-08-04 11:23:40 Zhiting Lin update key restore
ec08d8c 2020-07-31 19:26:18 Zhiting Lin update create key
2eb3f7a 2020-07-28 10:56:06 Zhiting Lin update and test the key logic
b992b32 2020-07-27 10:53:16 Zhiting Lin update key logic

Zweige

Name Rev. Zeit Autor Nachricht
dev 779d372 2020-09-09 10:52:01 Zhiting Lin update the sign transaction...
master 2a7ce00 2019-11-29 15:28:32 Zhiting Lin update transactions

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