• R/O
  • HTTP
  • SSH
  • HTTPS

Bytom-JS-SDK: Résumé du dépôt

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


Commits Récents RSS

Révision l'heure Auteur Message:
3b77f6f 2020-10-22 12:05:18 Zhiting Lin dev 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
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

Branches

Nom Révision l'heure Auteur Message:
dev 3b77f6f 2020-10-22 12:05:18 Zhiting Lin update list account for v2 ...
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.

Afficher sur ancien navigateur de dépôt.