Claim Delegate Stake
Add and increase delegate stake
Explorer
Select the submit the following extrinsic and choose network in the explorer.
Choose claimDelegateStakeUnbondings(subnetId)
.
Choose the subnet ID from which to remove the delegate stake.
This will remove all delegate stakes previously removed that have exceeded the cooldown period.
Substrate Libraries
keypair = Keypair.create_from_uri('//Alice') # replace with your mnemonic phrase
call = substrate.compose_call(
call_module='Network',
call_function='claim_delegate_stake_unbondings',
call_params={
'subnet_id': subnet_id,
}
)
extrinsic = substrate.create_signed_extrinsic(call=call, keypair=keypair)
receipt = substrate.submit_extrinsic(extrinsic, wait_for_inclusion=True)
const api = await ApiPromise.create();
// Construct the keyring after the API (crypto has an async init)
const keyring = new Keyring({ type: 'sr25519' });
// Replace //Alice with your mnemonic phrase
const keypair = keyring.addFromUri('//Alice');
const subnetId = 1;
const extrinsic = api.tx.network.claimDelegateStakeUnbondings(
subnetId,
);
const hash = await extrinsic.signAndSend(keypair);