All chains
    Preparing search index...
    unstake: TxDescriptor<{ amount: bigint; pool_id: number; staker?: SS58String }>

    Unstake tokens from a pool.

    Removes the freeze on the staked tokens.

    Parameters:

    • origin: must be the staker if the pool is still active. Otherwise, any account.
    • pool_id: the pool to unstake from.
    • amount: the amount of tokens to unstake.
    • staker: the account to unstake from. If None, the caller is used.