bittensor.core.extrinsics.asyncex.utils

bittensor.core.extrinsics.asyncex.utils#

Functions#

get_extrinsic_fee(subtensor, call, keypair[, netuid])

Get extrinsic fee for a given extrinsic call and keypair for a given SN's netuid.

Module Contents#

async bittensor.core.extrinsics.asyncex.utils.get_extrinsic_fee(subtensor, call, keypair, netuid=None)#

Get extrinsic fee for a given extrinsic call and keypair for a given SN’s netuid.

Parameters:
  • subtensor (bittensor.core.async_subtensor.AsyncSubtensor) – The Subtensor instance.

  • netuid (Optional[int]) – The SN’s netuid.

  • call (scalecodec.GenericCall) – The extrinsic call.

  • keypair (bittensor_wallet.Keypair) – The keypair associated with the extrinsic.

Returns:

Balance object representing the extrinsic fee in RAO.