Skip to content

Commit d4735e7

Browse files
committed
Improve README
1 parent 1a4e997 commit d4735e7

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

README.md

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,6 @@
55

66
## Usage examples
77

8-
Read dynamic global properties:
9-
10-
```python
11-
from viz import Client
12-
from pprint import pprint
13-
14-
viz = Client(node="wss://node.viz.cx/ws")
15-
pprint(viz.info())
16-
```
17-
188
Award someone:
199

2010
```python
@@ -34,6 +24,7 @@ from viz import Client
3424

3525
node = "wss://node.viz.cx/ws"
3626
viz = Client(node=node, keys=["5...your_private_regular_key..."])
27+
3728
initiator = "your_account"
3829
reward_amount = 3.5 # "3.50 VIZ"
3930
max_energy = 30 # 30%
@@ -47,6 +38,7 @@ from viz import Client
4738

4839
node = "wss://node.viz.cx/ws"
4940
viz = Client(node=node, keys=["5...your_private_regular_key..."])
41+
5042
account = "your_account"
5143
protocol = "color.place"
5244
json = {"x":35, "y":70, "color":"#e50000"}
@@ -74,7 +66,10 @@ block = Block(last_used_in_block)
7466
Any direct RPC call:
7567

7668
```python
77-
viz.rpc.some_rpc_method()
69+
from viz import Client
70+
71+
viz = Client('wss://node.viz.cx/ws')
72+
viz.rpc.get_dynamic_global_properties()
7873
```
7974

8075
## Installation

0 commit comments

Comments
 (0)