Locking Accounts
Learn how to lock NEAR smart contracts to prevent unauthorized modifications and ensure contract immutability when needed.
In NEAR, you can lock an account by removing all its full access keys. This is useful to prevent any further transactions from being executed in the account’s name, effectively locking it.
Removing all full access keys from an account will effectively lock it.
When an account is locked nobody can perform transactions in the account’s name (e.g. update the code or transfer money).