bitshares.worker module

class bitshares.worker.Worker(*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
post_format()
refresh()
type_id = 14
class bitshares.worker.Workers(account_name=None, lazy=False, **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