bittensor.extrinsics.prometheus
#
Module Contents#
Functions#
|
Subscribes an bittensor endpoint to the substensor chain. |
- bittensor.extrinsics.prometheus.prometheus_extrinsic(subtensor, wallet, port, netuid, ip=None, wait_for_inclusion=False, wait_for_finalization=True)#
Subscribes an bittensor endpoint to the substensor chain. :param subtensor: bittensor subtensor object. :type subtensor: bittensor.subtensor :param wallet: bittensor wallet object. :type wallet: bittensor.wallet :param ip: endpoint host port i.e. 192.122.31.4 :type ip: str :param port: endpoint port number i.e. 9221 :type port: int :param netuid: network uid to serve on. :type netuid: int :param wait_for_inclusion: if set, waits for the extrinsic to enter a block before returning true,
or returns false if the extrinsic fails to enter the block within the timeout.
- Parameters:
wait_for_finalization (bool) – if set, waits for the extrinsic to be finalized on the chain before returning true, or returns false if the extrinsic fails to be finalized within the timeout.
subtensor (bittensor.subtensor) –
wallet (bittensor.wallet) –
port (int) –
netuid (int) –
ip (int) –
wait_for_inclusion (bool) –
- Returns:
flag is true if extrinsic was finalized or uncluded in the block. If we did not wait for finalization / inclusion, the response is true.
- Return type:
success (bool)