OSDN Git Service

readme
[bytom/Bytom-JS-SDK.git] / README.md
1 # Bytom-JS-SDK
2 [![npm version](https://img.shields.io/npm/v/bytom-js-sdk.svg?style=flat-square)](https://www.npmjs.com/package/bytom-js-sdk)
3
4 ## Install
5
6 ``` bash
7 npm install bytom-js-sdk
8 ```
9
10 ## Use
11
12 ```javascript
13 let bytom = new Bytom("http://52.82.24.155:3000/", chrome.runtime.getURL("main.wasm"));
14
15 //create key
16 bytom.sdk.keys.create("test666", "123456").then((res)=>{
17     console.log(res)
18 }).catch(error => {
19     console.log(error)
20 });
21 ```
22
23 ## WebAssembly build
24
25 Project depends on WebAssembly. \
26 See [Bytom-WebAssembly](https://github.com/Bytom-Community/Bytom-WebAssembly)