@@ -1856,7 +1856,7 @@ async def get_delegates(
1856
1856
Arguments:
1857
1857
block: The blockchain block number for the query.
1858
1858
block_hash: hash of the blockchain block number for the query.
1859
- reuse_block (Optional[bool]) : whether to reuse the last-used block hash.
1859
+ reuse_block: whether to reuse the last-used block hash.
1860
1860
1861
1861
Returns:
1862
1862
List of DelegateInfo objects, or an empty list if there are no delegates.
@@ -2094,7 +2094,7 @@ async def get_netuids_for_hotkey(
2094
2094
hotkey_ss58: The `SS58` address of the neuron's hotkey.
2095
2095
block: The blockchain block number for the query.
2096
2096
block_hash: The hash of the blockchain block number at which to perform the query.
2097
- reuse_block (Optional[bool]) : Whether to reuse the last-used block hash when retrieving info.
2097
+ reuse_block: Whether to reuse the last-used block hash when retrieving info.
2098
2098
2099
2099
Returns:
2100
2100
A list of netuids where the neuron is a member.
@@ -2455,8 +2455,8 @@ async def get_owned_hotkeys(
2455
2455
Retrieves all hotkeys owned by a specific coldkey address.
2456
2456
2457
2457
Arguments:
2458
- coldkey_ss58 (str) : The SS58 address of the coldkey to query.
2459
- block (int) : The blockchain block number for the query.
2458
+ coldkey_ss58: The SS58 address of the coldkey to query.
2459
+ block: The blockchain block number for the query.
2460
2460
block_hash: The hash of the blockchain block number for the query.
2461
2461
reuse_block: Whether to reuse the last-used blockchain block hash.
2462
2462
@@ -2488,7 +2488,7 @@ async def get_stake(
2488
2488
2489
2489
Arguments:
2490
2490
hotkey_ss58: The SS58 address of the hotkey.
2491
- coldkey_ss58 (str) : The SS58 address of the coldkey.
2491
+ coldkey_ss58: The SS58 address of the coldkey.
2492
2492
netuid: The subnet ID.
2493
2493
block: The block number at which to query the stake information.
2494
2494
block_hash: The hash of the block to retrieve the stake from. Do not specify if using block
@@ -2646,7 +2646,7 @@ async def get_subnet_prices(
2646
2646
) -> dict [int , Balance ]:
2647
2647
"""Gets the current Alpha price in TAO for a specified subnet.
2648
2648
2649
- Args :
2649
+ Argsuments :
2650
2650
block: The blockchain block number for the query.
2651
2651
block_hash: The hash of the block to retrieve the stake from. Do not specify if using block
2652
2652
or reuse_block
@@ -2768,9 +2768,9 @@ async def get_stake_for_coldkey_and_hotkey(
2768
2768
Retrieves all coldkey-hotkey pairing stake across specified (or all) subnets
2769
2769
2770
2770
Arguments:
2771
- coldkey_ss58 (str) : The SS58 address of the coldkey.
2771
+ coldkey_ss58: The SS58 address of the coldkey.
2772
2772
hotkey_ss58: The SS58 address of the hotkey.
2773
- netuids (Optional[list[int]]) : The subnet IDs to query for. Set to `None` for all subnets.
2773
+ netuids: The subnet IDs to query for. Set to `None` for all subnets.
2774
2774
block: The block number at which to query the stake information.
2775
2775
block_hash: The hash of the block to retrieve the stake from. Do not specify if using block
2776
2776
or reuse_block
@@ -2815,7 +2815,7 @@ async def get_stake_for_coldkey(
2815
2815
Retrieves the stake information for a given coldkey.
2816
2816
2817
2817
Arguments:
2818
- coldkey_ss58 (str) : The SS58 address of the coldkey.
2818
+ coldkey_ss58: The SS58 address of the coldkey.
2819
2819
block: The block number at which to query the stake information.
2820
2820
block_hash: The hash of the blockchain block number for the query.
2821
2821
reuse_block: Whether to reuse the last-used block hash.
@@ -2923,7 +2923,7 @@ async def get_subnet_hyperparameters(
2923
2923
netuid: The network UID of the subnet to query.
2924
2924
block: The blockchain block number for the query.
2925
2925
block_hash: The hash of the blockchain block number for the query.
2926
- reuse_blocko reuse the last-used blockchain hash.
2926
+ reuse_block: Whether to reuse the last-used blockchain hash.
2927
2927
2928
2928
Returns:
2929
2929
The subnet's hyperparameters, or `None` if not available.
@@ -3070,7 +3070,7 @@ async def get_vote_data(
3070
3070
about how senate members have voted on the proposal.
3071
3071
3072
3072
Arguments:
3073
- proposal_hash (str) : The hash of the proposal for which voting data is requested.
3073
+ proposal_hash: The hash of the proposal for which voting data is requested.
3074
3074
block: The blockchain block number for the query.
3075
3075
block_hash: The hash of the blockchain block number to query the voting data.
3076
3076
reuse_block: Whether to reuse the last-used blockchain block hash.
@@ -3142,9 +3142,9 @@ async def filter_netuids_by_registered_hotkeys(
3142
3142
Filters a given list of all netuids for certain specified netuids and hotkeys
3143
3143
3144
3144
Arguments:
3145
- all_netuids (Iterable[int]) : A list of netuids to filter.
3146
- filter_for_netuids (Iterable[int]) : A subset of all_netuids to filter from the main list.
3147
- all_hotkeys (Iterable[Wallet]) : Hotkeys to filter from the main list.
3145
+ all_netuids: A list of netuids to filter.
3146
+ filter_for_netuids: A subset of all_netuids to filter from the main list.
3147
+ all_hotkeys: Hotkeys to filter from the main list.
3148
3148
block: The blockchain block number for the query.
3149
3149
block_hash: hash of the blockchain block number at which to perform the query.
3150
3150
reuse_block: whether to reuse the last-used blockchain hash when retrieving info.
@@ -3241,7 +3241,7 @@ async def is_hotkey_delegate(
3241
3241
hotkey_ss58: The SS58 address of the neuron's hotkey.
3242
3242
block: The blockchain block number for the query.
3243
3243
block_hash: The hash of the blockchain block number for the query.
3244
- reuse_block (Optional[bool]) : Whether to reuse the last-used block hash.
3244
+ reuse_block: Whether to reuse the last-used block hash.
3245
3245
3246
3246
Returns:
3247
3247
`True` if the hotkey is a delegate, `False` otherwise.
@@ -3926,7 +3926,7 @@ async def weights(
3926
3926
netuid: The network UID of the subnet to query.
3927
3927
block: Block number for synchronization, or `None` for the latest block.
3928
3928
block_hash: The hash of the blockchain block for the query.
3929
- reuse_blocko reuse the last-used blockchain block hash.
3929
+ reuse_block: reuse the last-used blockchain block hash.
3930
3930
3931
3931
Returns:
3932
3932
A list of tuples mapping each neuron's UID to its assigned weights.
@@ -4778,12 +4778,12 @@ async def root_register(
4778
4778
Register neuron by recycling some TAO.
4779
4779
4780
4780
Arguments:
4781
- wallet (bittensor_wallet.Wallet) : Bittensor wallet instance.
4781
+ wallet: Bittensor wallet instance.
4782
4782
block_hash: This argument will be removed in Bittensor v10
4783
- wait_for_inclusion (bool) : Waits for the transaction to be included in a block. Default is `` False` `.
4784
- wait_for_finalization (bool) : Waits for the transaction to be finalized on the blockchain. Default is
4785
- `` False` `.
4786
- period (Optional[int]) : The number of blocks during which the transaction will remain valid after it's
4783
+ wait_for_inclusion: Waits for the transaction to be included in a block. Default is `False`.
4784
+ wait_for_finalization: Waits for the transaction to be finalized on the blockchain. Default is
4785
+ `False`.
4786
+ period: The number of blocks during which the transaction will remain valid after it's
4787
4787
submitted. If the transaction is not included in a block within that number of blocks, it will expire
4788
4788
and be rejected. You can think of it as an expiration date for the transaction.
4789
4789
@@ -4993,7 +4993,7 @@ async def set_subnet_identity(
4993
4993
Arguments:
4994
4994
wallet: The wallet instance that will authorize the transaction.
4995
4995
netuid: The unique ID of the network on which the operation takes place.
4996
- subnet_identity (SubnetIdentity) : The identity data of the subnet including attributes like name, GitHub
4996
+ subnet_identity: The identity data of the subnet including attributes like name, GitHub
4997
4997
repository, contact, URL, discord, description, and any additional metadata.
4998
4998
wait_for_inclusion: Indicates if the function should wait for the transaction to be included in the
4999
4999
block.
@@ -5163,7 +5163,7 @@ async def serve_axon(
5163
5163
5164
5164
Arguments:
5165
5165
netuid: The unique identifier of the subnetwork.
5166
- axon (bittensor.core.axon.Axon) : The Axon instance to be registered for serving.
5166
+ axon: The Axon instance to be registered for serving.
5167
5167
wait_for_inclusion: Waits for the transaction to be included in a block. Default is `False`.
5168
5168
wait_for_finalization: Waits for the transaction to be finalized on the blockchain. Default is
5169
5169
`True`.
@@ -5384,7 +5384,7 @@ async def transfer_stake(
5384
5384
5385
5385
Arguments:
5386
5386
wallet: The wallet to transfer stake from.
5387
- destination_coldkey_ss58 (str) : The destination coldkey SS58 address.
5387
+ destination_coldkey_ss58: The destination coldkey SS58 address.
5388
5388
hotkey_ss58: The hotkey SS58 address associated with the stake.
5389
5389
origin_netuid: The source subnet UID.
5390
5390
destination_netuid: The destination subnet UID.
@@ -5574,10 +5574,10 @@ async def unstake_multiple(
5574
5574
Arguments:
5575
5575
wallet: The wallet linked to the coldkey from which the stakes are being
5576
5576
withdrawn.
5577
- s (List[str]) : A list of hotkey `SS58` addresses to unstake from.
5578
- netuidst]) : Subnets unique IDs.
5579
- amounts (List[Union[Balance, float]]) : The amounts of TAO to unstake from each hotkey. If not provided,
5580
- unstakes all_inclusion (bool) : Waits for the transaction to be included in a block.
5577
+ hotkey_ss58s : A list of hotkey `SS58` addresses to unstake from.
5578
+ netuids : Subnets unique IDs.
5579
+ amounts: The amounts of TAO to unstake from each hotkey. If not provided, unstakes all.
5580
+ wait_for_inclusion : Waits for the transaction to be included in a block.
5581
5581
wait_for_finalization: Waits for the transaction to be finalized on the blockchain.
5582
5582
period: The number of blocks during which the transaction will remain valid after it's
5583
5583
submitted. If the transaction is not included in a block within that number of blocks, it will expire
0 commit comments