graphenecommon.worker module¶
-
class
graphenecommon.worker.
Worker
(*args, **kwargs)¶ Bases:
graphenecommon.blockchainobject.BlockchainObject
,graphenecommon.instance.AbstractBlockchainInstanceProvider
Read 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
¶
-
post_format
()¶
-
refresh
()¶
-
class
graphenecommon.worker.
Workers
(*args, account_name=None, lazy=False, **kwargs)¶ Bases:
graphenecommon.blockchainobject.BlockchainObjects
,graphenecommon.instance.AbstractBlockchainInstanceProvider
Obtain 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