bittensor.core.extrinsics.asyncex.move_stake#
Functions#
|
Moves stake from one hotkey to another within subnets in the Bittensor network. |
|
Swaps stake from one subnet to another for a given hotkey in the Bittensor network. |
|
Transfers stake from one coldkey to another in the Bittensor network. |
Module Contents#
- async bittensor.core.extrinsics.asyncex.move_stake.move_stake_extrinsic(subtensor, wallet, origin_hotkey, origin_netuid, destination_hotkey, destination_netuid, amount, wait_for_inclusion=True, wait_for_finalization=False)#
Moves stake from one hotkey to another within subnets in the Bittensor network.
- Parameters:
subtensor (Subtensor) – The subtensor instance to interact with the blockchain.
wallet (Wallet) – The wallet containing the coldkey to authorize the move.
origin_hotkey (str) – SS58 address of the origin hotkey associated with the stake.
origin_netuid (int) – Network UID of the origin subnet.
destination_hotkey (str) – SS58 address of the destination hotkey.
destination_netuid (int) – Network UID of the destination subnet.
amount (Balance) – The amount of stake to move as a Balance object.
wait_for_inclusion (bool) – If True, waits for transaction inclusion in a block. Defaults to True.
wait_for_finalization (bool) – If True, waits for transaction finalization. Defaults to False.
- Returns:
True if the move was successful, False otherwise.
- Return type:
- async bittensor.core.extrinsics.asyncex.move_stake.swap_stake_extrinsic(subtensor, wallet, hotkey_ss58, origin_netuid, destination_netuid, amount, wait_for_inclusion=True, wait_for_finalization=False)#
Swaps stake from one subnet to another for a given hotkey in the Bittensor network.
- Parameters:
subtensor (AsyncSubtensor) – The subtensor instance to interact with the blockchain.
wallet (Wallet) – The wallet containing the coldkey to authorize the swap.
hotkey_ss58 (str) – SS58 address of the hotkey associated with the stake.
origin_netuid (int) – Network UID of the origin subnet.
destination_netuid (int) – Network UID of the destination subnet.
amount (Balance) – The amount of stake to swap as a Balance object.
wait_for_inclusion (bool) – If True, waits for transaction inclusion in a block. Defaults to True.
wait_for_finalization (bool) – If True, waits for transaction finalization. Defaults to False.
- Returns:
True if the swap was successful, False otherwise.
- Return type:
- async bittensor.core.extrinsics.asyncex.move_stake.transfer_stake_extrinsic(subtensor, wallet, destination_coldkey_ss58, hotkey_ss58, origin_netuid, destination_netuid, amount, wait_for_inclusion=True, wait_for_finalization=False)#
Transfers stake from one coldkey to another in the Bittensor network.
- Parameters:
subtensor (AsyncSubtensor) – The subtensor instance to interact with the blockchain.
wallet (Wallet) – The wallet containing the coldkey to authorize the transfer.
destination_coldkey_ss58 (str) – SS58 address of the destination coldkey.
hotkey_ss58 (str) – SS58 address of the hotkey associated with the stake.
origin_netuid (int) – Network UID of the origin subnet.
destination_netuid (int) – Network UID of the destination subnet.
amount (Balance) – The amount of stake to transfer as a Balance object.
wait_for_inclusion (bool) – If True, waits for transaction inclusion in a block. Defaults to True.
wait_for_finalization (bool) – If True, waits for transaction finalization. Defaults to False.
- Returns:
True if the transfer was successful, False otherwise.
- Return type: