Sub3
This is the main module of this package. It is provided as a simple “no-post processing, only print” package and as such it’s highly recommended to expend it through sub-classing to add your own data processing to it.
- class sub3.Sub3(server_url: str, rpc: Union[str, dict], logger: Optional[Logger] = None)[source]
Base connection client for asyncio JSON-RPC calls.
- Parameters
server_url (str) – URL of the node to connect to
rpc (Union[str, dict]) – Standard RPC PubSub
logger (Optional[logging.Logger], optional) – Custom logger, will create one if this is not provided.
- async on_confirmation(confirmation: str)[source]
This is called when a confirmation is received from a successful RPC subscription