Nano Node RPC icon

Nano Node RPC

Interact with Nano cryptocurrency network

Actions111

Wallet → Lock Wallet

AI-generated

Summary

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.

Links

Discussion