Actions111
- Account Actions
- Administration Actions
- Block Actions
- Confirmation Actions
- Conversion Actions
- Key Actions
- Ledger Actions
- Network Actions
- Representative Actions
- Transaction Actions
- Wallet Actions
- Add Key to Wallet
- Add Watch-Only
- Change Password
- Change Wallet Seed
- Check Wallet Locked
- Create Account
- Create Multiple Accounts
- Create Wallet
- Destroy Wallet
- Enter Password
- Export Wallet
- Get Account Work
- Get Receive Minimum
- Get Wallet Balances
- Get Wallet Frontiers
- Get Wallet History
- Get Wallet Info
- Get Wallet Ledger
- Get Wallet Receivable
- Get Wallet Representative
- Get Wallet Work
- List Accounts
- Lock Wallet
- Move Accounts
- Remove Account
- Republish Wallet Blocks
- Search Receivable
- Search Receivable All
- Set Account Representative
- Set Account Work
- Set Receive Minimum
- Set Wallet Representative
- Validate Password
- Wallet Contains
- Work Actions
Wallet → Lock Wallet
AI-generatedSummary
Lock a specified Nano wallet to prevent any sensitive operations until it is unlocked again, requiring the Nano node to have control enabled.
Inputs
- Wallet ID (Manual) — Optionally specify the wallet ID to lock; defaults to the wallet configured in credentials if omitted.
- Options — Configuration options including request timeout in milliseconds and maximum number of RPC retries on transient failures.
Output shape
An object representing the result of the wallet lock RPC call, typically including success status or error information.
The operation requires the Nano node to be started with 'enable_control = true'; otherwise, the RPC call will be rejected. Timeout and retry options affect the HTTP request behavior but do not change the RPC operation outcome.
Examples
Example 1: Lock the default wallet to restrict access to sensitive operations
Set no wallet ID to lock the credential-configured wallet; optionally adjust timeout and retries for robustness.