bitshares.worker module

class bitshares.worker.Worker(data, klass=None, space_id=1, object_id=None, lazy=False, use_cache=True, *args, **kwargs)

Bases: bitshares.blockchainobject.BlockchainObject

Read data about a worker in the chain

Parameters:
  • id (str) – id of the worker
  • blockchain_instance (bitshares) – BitShares() instance to use when accesing a RPC
account
refresh()
type_id = 14
class bitshares.worker.Workers(account_name=None, **kwargs)

Bases: list

Obtain a list of workers for an account

Parameters:
  • account_name/id (str) – Name/id of the account (optional)
  • blockchain_instance (bitshares) – BitShares() instance to use when accesing a RPC