On this page

Set GUI Storage Account Balance

API-v2gui_storage::set_account_balance

Sets or overrides the USD balance snapshot for the given account in the local GUI-storage database.
This value is informational only and does not change any on-chain balances or affect swap operations.

ParameterTypeRequiredDescription
account_idAccountIdAccount to update.
balance_usdnumber (string)New balance expressed in US dollars. Accepts decimal strings (e.g., 123.45).

ParameterTypeDescription
resultstringReturns success when the balance has been stored.

set_account_balance

POST
gui_storage::set_account_balance
{
  "mmrpc": "2.0",
  "method": "gui_storage::set_account_balance",
  "params": {
    "account_id": {
      "type": "hd",
      "account_idx": 0
    },
    "balance_usd": "2500.75"
  },
  "id": 18,
  "userpass": "RPC_UserP@SSW0RD"
}

ParameterTypeDescription
NoSuchAccountstringThe specified account_id does not exist.
ErrorLoadingAccountstringStorage read error.
ErrorSavingAccountstringStorage write error.
InternalErrorstringUnhandled internal error.