Remove Node Delegate Stake
Add and increase delegate stake
Explorer
Select the submit the following extrinsic and choose network in the explorer.
Choose
removeDelegateStake(subnetId, sharesToBeRemoved)
.Choose the subnet ID to remove the node delegate stake from.
Choose the subnet node ID to remove the node delegate stake from.
The shares to remove.
Submit transaction.
Substrate Libraries
# convert balance to shares using the ``convert_to_shares`` function
keypair = Keypair.create_from_uri('//Alice') # replace with your mnemonic phrase
call = substrate.compose_call(
call_module='Network',
call_function='remove_node_delegate_stake',
call_params={
'subnet_id': subnet_id,
'subnet_node_id': subnet_node_id,
'shares_to_be_removed': shares_to_be_removed,
}
)
extrinsic = substrate.create_signed_extrinsic(call=call, keypair=keypair)
receipt = substrate.submit_extrinsic(extrinsic, wait_for_inclusion=True)
Last updated