bitshares.witness module

class bitshares.witness.Witness(data, klass=None, lazy=False, use_cache=True, *args, **kwargs)

Bases: bitshares.blockchainobject.BlockchainObject

Read data about a witness in the chain

Parameters:
  • account_name (str) – Name of the witness
  • blockchain_instance (bitshares) – BitShares() instance to use when accesing a RPC
account
is_active
refresh()
type_ids = [6, 2]
weight
class bitshares.witness.Witnesses(only_active=False, lazy=False, **kwargs)

Bases: list

Obtain a list of active witnesses and the current schedule

Parameters:
  • only_active (bool) – (False) Only return witnesses that are actively producing blocks
  • blockchain_instance (bitshares) – BitShares() instance to use when accesing a RPC