graphenecommon.aio.worker module¶
-
class
graphenecommon.aio.worker.Worker(*args, **kwargs)¶ Bases:
graphenecommon.aio.blockchainobject.BlockchainObject,graphenecommon.worker.WorkerRead data about a worker in the chain
Parameters: - id (str) – id of the worker
- blockchain_instance (instance) – instance to use when accesing a RPC
-
account¶
-
refresh()¶
-
class
graphenecommon.aio.worker.Workers(*args, account_name=None, lazy=False, **kwargs)¶ Bases:
graphenecommon.aio.blockchainobject.BlockchainObjects,graphenecommon.worker.WorkersObtain a list of workers for an account
Parameters: - account_name/id (str) – Name/id of the account (optional)
- blockchain_instance (instance) – instance to use when accesing a RPC
-
refresh(*args, **kwargs)¶ Interface that needs to be implemented. This method is called when an object is requested that has not yet been fetched/stored