From 91fe35e132a6446e637eb3c3ec385d4dcd2c59da Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Thu, 17 Oct 2019 09:50:32 -0400 Subject: [PATCH] feat: updated docs and API --- .vuepress/components/code1.vue | 44 ++++++++++++++++++++---------- api.md | 50 +++++++++++++++++++++++++++++++++- 2 files changed, 78 insertions(+), 16 deletions(-) diff --git a/.vuepress/components/code1.vue b/.vuepress/components/code1.vue index 983ecce..720c453 100644 --- a/.vuepress/components/code1.vue +++ b/.vuepress/components/code1.vue @@ -42,14 +42,17 @@
-
Contract.trackBalance().subscribe((balance) => {
-    console.log("ETH balance is ", balance)
-  });
+        
const address = "0x0001020304050607080900010203040506070809";
 
-  Contract.trackBalance("0x744d70fdbe2ba4cf95131626614a1763df805b9e").subscribe((balance) => {
-    console.log("SNT balance is ", balance)
-  });
-  
1
2
3
4
5
6
7
+subspace.trackBalance(address).subscribe((balance) => { + console.log("ETH balance is ", balance) +}); + +subspace.trackBalance(address, "0x744d70fdbe2ba4cf95131626614a1763df805b9e").subscribe((balance) => { + console.log("SNT balance is ", balance) +}); + +
1
2
3
4
5
6
7
8
9
@@ -94,8 +97,7 @@