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 → Set Account Work
AI-generatedSummary
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.