File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed
Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change 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-
188Award someone:
199
2010``` python
@@ -34,6 +24,7 @@ from viz import Client
3424
3525node = " wss://node.viz.cx/ws"
3626viz = Client(node = node, keys = [" 5...your_private_regular_key..." ])
27+
3728initiator = " your_account"
3829reward_amount = 3.5 # "3.50 VIZ"
3930max_energy = 30 # 30%
@@ -47,6 +38,7 @@ from viz import Client
4738
4839node = " wss://node.viz.cx/ws"
4940viz = Client(node = node, keys = [" 5...your_private_regular_key..." ])
41+
5042account = " your_account"
5143protocol = " color.place"
5244json = {" x" :35 , " y" :70 , " color" :" #e50000" }
@@ -74,7 +66,10 @@ block = Block(last_used_in_block)
7466Any 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
You can’t perform that action at this time.
0 commit comments