@@ -1573,7 +1573,7 @@ async def get_revealed_commitment_by_hotkey(
1573
1573
Arguments:
1574
1574
netuid: The unique identifier of the subnetwork.
1575
1575
block: The block number to retrieve the commitment from. Default is `None`.
1576
- hotkey_ss58_address (str) : The ss58 address of the committee member.
1576
+ hotkey_ss58_address: The ss58 address of the committee member.
1577
1577
block_hash: The hash of the block to retrieve the subnet unique identifiers from.
1578
1578
reuse_block: Whether to reuse the last-used block hash.
1579
1579
@@ -1855,7 +1855,7 @@ async def get_delegates(
1855
1855
1856
1856
Arguments:
1857
1857
block: The blockchain block number for the query.
1858
- block_hash (Optional[str]) : hash of the blockchain block number for the query.
1858
+ block_hash: hash of the blockchain block number for the query.
1859
1859
reuse_block (Optional[bool]): whether to reuse the last-used block hash.
1860
1860
1861
1861
Returns:
@@ -1887,7 +1887,7 @@ async def get_existential_deposit(
1887
1887
1888
1888
Arguments:
1889
1889
block: The blockchain block number for the query.
1890
- block_hash (str) : Block hash at which to query the deposit amount. If `None`, the current block is used.
1890
+ block_hash: Block hash at which to query the deposit amount. If `None`, the current block is used.
1891
1891
reuse_block: Whether to reuse the last-used blockchain block hash.
1892
1892
1893
1893
Returns:
@@ -1923,10 +1923,10 @@ async def get_hotkey_owner(
1923
1923
specified block hash, it returns None.
1924
1924
1925
1925
Arguments:
1926
- hotkey_ss58 (str) : The SS58 address of the hotkey.
1927
- block (Optional[int]) : The blockchain block number for the query.
1928
- block_hash (Optional[str]) : The hash of the block at which to check the hotkey ownership.
1929
- reuse_block (bool) : Whether to reuse the last-used blockchain hash.
1926
+ hotkey_ss58: The SS58 address of the hotkey.
1927
+ block: The blockchain block number for the query.
1928
+ block_hash: The hash of the block at which to check the hotkey ownership.
1929
+ reuse_block: Whether to reuse the last-used blockchain hash.
1930
1930
1931
1931
Returns:
1932
1932
Optional[str]: The SS58 address of the owner if the hotkey exists, or None if it doesn't.
@@ -2059,9 +2059,9 @@ async def get_all_metagraphs_info(
2059
2059
Arguments:
2060
2060
block: the block number at which to retrieve the hyperparameter. Do not specify if using block_hash or
2061
2061
reuse_block
2062
- block_hash (Optional[str]) : The hash of blockchain block number for the query. Do not specify if using
2062
+ block_hash: The hash of blockchain block number for the query. Do not specify if using
2063
2063
block or reuse_block
2064
- reuse_block (bool) : Whether to reuse the last-used block hash. Do not set if using block_hash or block.
2064
+ reuse_block: Whether to reuse the last-used block hash. Do not set if using block_hash or block.
2065
2065
2066
2066
Returns:
2067
2067
MetagraphInfo dataclass
@@ -2093,7 +2093,7 @@ async def get_netuids_for_hotkey(
2093
2093
Arguments:
2094
2094
hotkey_ss58: The `SS58` address of the neuron's hotkey.
2095
2095
block: The blockchain block number for the query.
2096
- block_hash (Optional[str]) : The hash of the blockchain block number at which to perform the query.
2096
+ block_hash: The hash of the blockchain block number at which to perform the query.
2097
2097
reuse_block (Optional[bool]): Whether to reuse the last-used block hash when retrieving info.
2098
2098
2099
2099
Returns:
@@ -2490,10 +2490,10 @@ async def get_stake(
2490
2490
hotkey_ss58: The SS58 address of the hotkey.
2491
2491
coldkey_ss58 (str): The SS58 address of the coldkey.
2492
2492
netuid: The subnet ID.
2493
- block (Optional[int]) : The block number at which to query the stake information.
2494
- block_hash (Optional[str]) : The hash of the block to retrieve the stake from. Do not specify if using block
2493
+ block: The block number at which to query the stake information.
2494
+ block_hash: The hash of the block to retrieve the stake from. Do not specify if using block
2495
2495
or reuse_block
2496
- reuse_block (bool) : Whether to use the last-used block. Do not set if using block_hash or block.
2496
+ reuse_block: Whether to use the last-used block. Do not set if using block_hash or block.
2497
2497
2498
2498
Returns:
2499
2499
Balance: The stake under the coldkey - hotkey pairing.
@@ -2579,9 +2579,9 @@ async def get_subnet_info(
2579
2579
Arguments:
2580
2580
netuid: The unique identifier of the subnet.
2581
2581
block: The blockchain block number for the query.
2582
- block_hash (Optional[str]) : The hash of the block to retrieve the stake from. Do not specify if using block
2582
+ block_hash: The hash of the block to retrieve the stake from. Do not specify if using block
2583
2583
or reuse_block
2584
- reuse_block (bool) : Whether to use the last-used block. Do not set if using block_hash or block.
2584
+ reuse_block: Whether to use the last-used block. Do not set if using block_hash or block.
2585
2585
2586
2586
Returns:
2587
2587
SubnetInfo: A SubnetInfo objects, each containing detailed information about a subnet.
@@ -2613,9 +2613,9 @@ async def get_subnet_price(
2613
2613
Arguments:
2614
2614
netuid: The unique identifier of the subnet.
2615
2615
block: The blockchain block number for the query.
2616
- block_hash (Optional[str]) : The hash of the block to retrieve the stake from. Do not specify if using block
2616
+ block_hash: The hash of the block to retrieve the stake from. Do not specify if using block
2617
2617
or reuse_block
2618
- reuse_block (bool) : Whether to use the last-used block. Do not set if using block_hash or block.
2618
+ reuse_block: Whether to use the last-used block. Do not set if using block_hash or block.
2619
2619
2620
2620
Returns:
2621
2621
The current Alpha price in TAO units for the specified subnet.
@@ -2648,9 +2648,9 @@ async def get_subnet_prices(
2648
2648
2649
2649
Args:
2650
2650
block: The blockchain block number for the query.
2651
- block_hash (Optional[str]) : The hash of the block to retrieve the stake from. Do not specify if using block
2651
+ block_hash: The hash of the block to retrieve the stake from. Do not specify if using block
2652
2652
or reuse_block
2653
- reuse_block (bool) : Whether to use the last-used block. Do not set if using block_hash or block.
2653
+ reuse_block: Whether to use the last-used block. Do not set if using block_hash or block.
2654
2654
2655
2655
Returns:
2656
2656
dict:
@@ -2771,10 +2771,10 @@ async def get_stake_for_coldkey_and_hotkey(
2771
2771
coldkey_ss58 (str): The SS58 address of the coldkey.
2772
2772
hotkey_ss58: The SS58 address of the hotkey.
2773
2773
netuids (Optional[list[int]]): The subnet IDs to query for. Set to `None` for all subnets.
2774
- block (Optional[int]) : The block number at which to query the stake information.
2775
- block_hash (Optional[str]) : The hash of the block to retrieve the stake from. Do not specify if using block
2774
+ block: The block number at which to query the stake information.
2775
+ block_hash: The hash of the block to retrieve the stake from. Do not specify if using block
2776
2776
or reuse_block
2777
- reuse_block (bool) : Whether to use the last-used block. Do not set if using block_hash or block.
2777
+ reuse_block: Whether to use the last-used block. Do not set if using block_hash or block.
2778
2778
2779
2779
Returns:
2780
2780
A {netuid: StakeInfo} pairing of all stakes across all subnets.
@@ -2816,7 +2816,7 @@ async def get_stake_for_coldkey(
2816
2816
2817
2817
Arguments:
2818
2818
coldkey_ss58 (str): The SS58 address of the coldkey.
2819
- block (Optional[int]) : The block number at which to query the stake information.
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.
2822
2822
@@ -3072,7 +3072,7 @@ async def get_vote_data(
3072
3072
Arguments:
3073
3073
proposal_hash (str): The hash of the proposal for which voting data is requested.
3074
3074
block: The blockchain block number for the query.
3075
- block_hash (Optional[str]) : The hash of the blockchain block number to query the voting data.
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.
3077
3077
3078
3078
Returns:
@@ -3110,7 +3110,7 @@ async def get_uid_for_hotkey_on_subnet(
3110
3110
hotkey_ss58: The `SS58` address of the neuron's hotkey.
3111
3111
netuid: The unique identifier of the subnet.
3112
3112
block: The blockchain block number for the query.
3113
- block_hash (Optional[str]) : The blockchain block_hash representation of the block id.
3113
+ block_hash: The blockchain block_hash representation of the block id.
3114
3114
reuse_block: Whether to reuse the last-used blockchain block hash.
3115
3115
3116
3116
Returns:
@@ -3146,8 +3146,8 @@ async def filter_netuids_by_registered_hotkeys(
3146
3146
filter_for_netuids (Iterable[int]): A subset of all_netuids to filter from the main list.
3147
3147
all_hotkeys (Iterable[Wallet]): Hotkeys to filter from the main list.
3148
3148
block: The blockchain block number for the query.
3149
- block_hash (str) : hash of the blockchain block number at which to perform the query.
3150
- reuse_block (bool) : whether to reuse the last-used blockchain hash when retrieving info.
3149
+ block_hash: hash of the blockchain block number at which to perform the query.
3150
+ reuse_block: whether to reuse the last-used blockchain hash when retrieving info.
3151
3151
3152
3152
Returns:
3153
3153
The filtered list of netuids.
@@ -3201,7 +3201,7 @@ async def immunity_period(
3201
3201
Arguments:
3202
3202
netuid: The unique identifier of the subnet.
3203
3203
block: The blockchain block number for the query.
3204
- block_hash (Optional[str]) : The blockchain block_hash representation of the block id.
3204
+ block_hash: The blockchain block_hash representation of the block id.
3205
3205
reuse_block: Whether to reuse the last-used blockchain block hash.
3206
3206
3207
3207
Returns:
@@ -3962,7 +3962,7 @@ async def weights_rate_limit(
3962
3962
Arguments:
3963
3963
netuid: The unique identifier of the subnetwork.
3964
3964
block: The blockchain block number for the query.
3965
- block_hash (Optional[str]) : The blockchain block_hash representation of the block id.
3965
+ block_hash: The blockchain block_hash representation of the block id.
3966
3966
reuse_block: Whether to reuse the last-used blockchain block hash.
3967
3967
3968
3968
Returns:
@@ -4779,7 +4779,7 @@ async def root_register(
4779
4779
4780
4780
Arguments:
4781
4781
wallet (bittensor_wallet.Wallet): Bittensor wallet instance.
4782
- block_hash (Optional[str]) : This argument will be removed in Bittensor v10
4782
+ block_hash: This argument will be removed in Bittensor v10
4783
4783
wait_for_inclusion (bool): Waits for the transaction to be included in a block. Default is ``False``.
4784
4784
wait_for_finalization (bool): Waits for the transaction to be finalized on the blockchain. Default is
4785
4785
``False``.
0 commit comments