Witness

Read data about a witness

from peerplays.witness import Witness
Witness("chainsquad.com")
class peerplays.witness.Witness(data, klass=None, space_id=1, object_id=None, lazy=False, use_cache=True, *args, **kwargs)

Read data about a witness in the chain

Parameters:
  • account_name (str) – Name of the witness
  • blockchain_instance (peerplays) – PeerPlays() instance to use when accesing a RPC
class peerplays.witness.Witnesses(only_active=False, **kwargs)

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 (peerplays) – PeerPlays() instance to use when accesing a RPC