-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Lorenz Herzberger <[email protected]>
- Loading branch information
1 parent
c068faf
commit c830e26
Showing
4 changed files
with
43 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,9 +2,33 @@ | |
|
||
## Example usage | ||
|
||
### Reissue Asset | ||
### GetBalance | ||
```golang | ||
package main | ||
|
||
import ( | ||
"fmt" | ||
"log" | ||
|
||
elementsrpc "github.com/rddl-network/elements-rpc" | ||
) | ||
|
||
func main() { | ||
res, err := elementsrpc.GetBalance("http://user:[email protected]:18891/wallet/foowallet", []string{}) | ||
if err != nil { | ||
log.Fatal(err) | ||
} | ||
fmt.Println(res) | ||
} | ||
``` | ||
Output: | ||
``` | ||
map[bitcoin:0] | ||
``` | ||
|
||
### Reissue Asset | ||
|
||
```golang | ||
package main | ||
|
||
import ( | ||
|
@@ -36,7 +60,7 @@ Output: | |
### Send To Address | ||
|
||
|
||
``` | ||
```golang | ||
package main | ||
|
||
import ( | ||
|
@@ -74,7 +98,7 @@ Output: | |
``` | ||
|
||
### Wallet management | ||
``` | ||
```golang | ||
package main | ||
|
||
import ( | ||
|
@@ -113,7 +137,7 @@ Output: | |
|
||
### Complex Example | ||
|
||
``` | ||
```golang | ||
package main | ||
|
||
import ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters