bittensor.extrinsics.prometheus#

Module Contents#

Functions#

prometheus_extrinsic(subtensor, wallet, port, netuid)

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.

Parameters:
  • subtensor (bittensor.subtensor) – Bittensor subtensor object.

  • wallet (bittensor.wallet) – Bittensor wallet object.

  • ip (str) – Endpoint host port i.e., 192.122.31.4.

  • port (int) – Endpoint port number i.e., 9221.

  • netuid (int) – Network uid to serve on.

  • wait_for_inclusion (bool) – 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.

  • 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.

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)