OSDN Git Service

fix
[bytom/Bytom-JS-SDK.git] / README.md
1 # bytom-js-sdk
2
3 ## install
4
5 ``` bash
6 npm install bytom-js-sdk
7 ```
8
9 ```javascript
10 let bytom = new Bytom("http://52.82.24.155:3000/", chrome.runtime.getURL("main.wasm"));
11
12 //create key
13 bytom.sdk.keys.create("test666", "123456").then((res)=>{
14     console.log(res)
15 }).catch(error => {
16     console.log(error)
17 });
18 ```
19
20 ## WebAssembly build
21
22 Project depends on WebAssembly. \
23 [Bytom-WebAssembly](https://github.com/Bytom-Community/Bytom-WebAssembly)