On this page

Add GUI Storage Account

API-v2gui_storage::add_account

Adds an account entry to the GUI-storage subsystem. This call does not affect MarketMaker runtime; it only persists wallet-GUI metadata (name/description, USD balance, etc.). Use gui_storage::enable_account to make the newly added account the active one.

ParameterTypeRequiredDefaultDescription
account_idstringA unique identifier of the account (e.g., wallet UUID or key fingerprint).
namestringDisplay name (max 64 characters).
descriptionstring""Optional longer description (max 256 characters).
balance_usdstring (numeric)0Initial USD balance for UI display; can be updated later via set_account_balance.

ParameterTypeDescription
resultstringReturns success when the account is stored.

add_account

POST
gui_storage::add_account
{
  "mmrpc": "2.0",
  "method": "gui_storage::add_account",
  "params": {
    "account_id": "wallet-1",
    "name": "My Primary Wallet",
    "description": "Main account for trading",
    "balance_usd": "0"
  },
  "id": 1,
  "userpass": "RPC_UserP@SSW0RD"
}

ParameterTypeDescription
NameTooLongstringname exceeds the maximum length (64).
DescriptionTooLongstringdescription exceeds the maximum length (256).
AccountExistsAlreadystringAn account with the same account_id already exists.
ErrorLoadingAccountstringProblem reading existing data from storage.
ErrorSavingAccountstringProblem persisting changes to storage.
InternalErrorstringUnhandled internal error in the Komodo DeFi Framework API.