Nano Node RPC icon

Nano Node RPC

Interact with Nano cryptocurrency network

Actions111

Wallet → Set Account Representative

AI-generated

Summary

Set the representative account for a specific Nano account within a wallet on a Nano node with control enabled.

Inputs

  • walletAccount (required) — The Nano account address to set the representative for.
  • representativeAddress (required) — The representative account address to assign to the specified account.
  • accountRepSetWork — An optional external work value (16-character hex string) to use for this operation; providing this disables work precaching.
  • manualWalletId — Optional manual specification of the wallet ID; defaults to the credential wallet if omitted.
  • options.timeout — Timeout for the RPC request in milliseconds, defaulting to 15000 ms.
  • options.maxRetries — Number of retries for transient RPC failures before failing, default is 2.

Output shape

a single JSON object containing the result of the RPC call confirming the representative set operation

Requires that the Nano node configuration has enable_control set to true; otherwise, the RPC call will be rejected. The operation returns the raw RPC response indicating success or failure of setting the account representative.

Links

Discussion