OSDN Git Service

change readme
authorxuhongxin <xuhongxin@luojilab.com>
Wed, 10 Oct 2018 06:27:48 +0000 (14:27 +0800)
committerxuhongxin <xuhongxin@luojilab.com>
Wed, 10 Oct 2018 06:27:48 +0000 (14:27 +0800)
README.md

index 7658f19..e7cf9c1 100644 (file)
--- a/README.md
+++ b/README.md
@@ -4,4 +4,20 @@
 
 ``` bash
 npm install bytom-js-sdk
-```
\ No newline at end of file
+```
+
+```javascript
+let bytom = new Bytom("http://52.82.24.155:3000/", chrome.runtime.getURL("main.wasm"));
+
+//create key
+bytom.sdk.keys.create("test666", "123456").then((res)=>{
+    console.log(res)
+}).catch(error => {
+    console.log(error)
+});
+```
+
+## WebAssembly build
+
+Project depends on WebAssembly.
+[Bytom-WebAssembly](https://github.com/Bytom-Community/Bytom-WebAssembly)
\ No newline at end of file