Token locking sits at the foundation of staking architecture across proof-of-stake networks, creating the economic conditions that make validator participation meaningful and network security measurable. When participants commit tokens to a staking contract, those assets become temporarily immovable, serving as collateral that aligns operator incentives with honest network behaviour. Crypto games operating on staked infrastructure depend on locking depth and duration to determine reward eligibility and slashing exposure. Understanding how locking works across each phase of the staking lifecycle clarifies why this mechanism remains central to how distributed networks maintain trust without relying on centralised enforcement.
How does locking get initiated?
Token locking begins the moment a participant submits a staking transaction to the relevant smart contract. Several sequential steps govern this process from deposit through active lock status.
- Participant approves the staking contract to access the specified token amount from their wallet.
- Staking transaction broadcasts to the network, carrying the deposit value and selected validator or pool address.
- Smart contract receives the deposit and records the locked amount against the participant’s address.
- Tokens move from the participant’s wallet into the contract custody address immediately upon confirmation.
- Lock status activates after the network processes a defined activation delay, typically measured in epochs.
- Active lock entry appears in the staking registry with timestamp, amount, and assigned validator recorded.
Once active lock status is confirmed, tokens begin accumulating rewards according to the network emission schedule and validator performance during each epoch.
Lock duration structure
Lock duration varies across network implementations but follows consistent structural logic. Fixed-term locks commit tokens for a predetermined period with no early withdrawal pathway, offering higher reward rates in exchange for reduced flexibility. Flexible locks allow withdrawal requests at any time but impose an unbonding delay before tokens actually return to the participant’s wallet. Tiered lock structures assign different reward multipliers to different commitment lengths, incentivising longer locks without making shorter commitments economically unviable. Duration choice directly affects both reward yield and liquidity access throughout the staking period.
Unbonding period process
Withdrawal from a staking lock does not release tokens immediately on any major proof-of-stake network. Unbonding periods serve a security function by ensuring tokens remain at economic risk long enough after withdrawal intent is signalled to cover the slashing adjudication window. Networks typically set unbonding durations between seven and twenty-eight days, depending on governance parameters. During unbonding, tokens neither earn rewards nor remain eligible for slashing beyond violations committed before the withdrawal request was submitted. Participants planning liquidity around staked positions must account for this period accurately to avoid unexpected delays in fund availability.
Slashing exposure during lock
Locked tokens carry slashing exposure for the full duration of active lock status. Protocol violations committed by the assigned validator trigger slashing events that proportionally reduce the locked balance of every delegator attached to that node. Slashing magnitude varies by violation severity, with double signing carrying heavier penalties than missed attestation duties. Locked participants have no mechanism to exit ahead of a slashing event once the violation is detected and queued for execution, reinforcing the importance of validator selection quality before locking rather than attempting to respond after a violation surfaces.

