stakeUndo static method
A blockchain stake undo refers to the process of removing a stake from a blockchain network. This typically involves a person who has previously staked their coins in a proof-of-stake (PoS) blockchain system choosing to unstake them and withdraw them from the network. The process of unstaking often involves a waiting period, during which the coins are locked and cannot be used or transferred. This waiting period is in place to ensure that the network remains secure and to prevent potential attacks. Once the waiting period is over, the staked coins can be withdrawn and used as normal. It's worth noting that unstaking process can be different depends on the specific blockchain network and its protocols.
Implementation
static InternalTransactionBean stakeUndo(String from, message, DateTime notBefore) {
InternalTransactionBean result = common(TransactionType.STAKE_UNDO, notBefore);
result.from = from;
result.message = message;
result.transactionHash =
StringUtilities.internalTransactionBeanHash(result);
return result;
}