from risesdk import APIError, Client

api = Client('https://wallet.rise.vision/api/')
try:
    delegates = api.delegates.search_delegates('pool')
    print(delegates[0].username)  # official_pool
except APIError as err:
    print('API error:', err)
Exemplo n.º 2
0
from risesdk import APIError, Client

api = Client('http://localhost:5566/api/')
try:
    res = api.delegates.get_forging_status()
    print(res.enabled)  # true
except APIError as err:
    print('API error:', err)