Nano Node RPC icon

Nano Node RPC

Interact with Nano cryptocurrency network

Actions111

Wallet → Set Account Work

AI-generated

Summary

Set the proof-of-work (work value) for a specified Nano account on the connected Nano node to optimize transaction processing.

Inputs

  • walletAccount (required) — The Nano account address (e.g., nano_1abc...) for which the work value will be set.
  • workValue (required) — The pre-computed work value represented as a hex string to assign to the account.
  • manualWalletId — Optionally specify the wallet ID manually to use for the RPC call; defaults to the node credential wallet if not provided.
  • options.timeout — The request timeout in milliseconds (default 15000 ms).
  • options.maxRetries — Number of retries for transient RPC failures before failing (default 2).

Output shape

a single record containing the RPC response indicating success or failure of setting the account work

Requires the Nano node to have 'enable_control = true' configured; otherwise, the RPC request will be rejected. The output directly reflects the node's RPC response for the workSet action.

Examples

Example 1: Set account work for a Nano account to optimize transaction confirmation speed.

Provide the account address and a valid pre-computed work hex string. Optionally adjust the wallet ID if managing multiple wallets and set timeout or retry options as needed.

Links

Discussion