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.
Parameter | Type | Required | Description |
---|---|---|---|
account_id | AccountId | ✓ | Account to update. |
balance_usd | number (string) | ✓ | New balance expressed in US dollars. Accepts decimal strings (e.g., 123.45 ). |
Parameter | Type | Description |
---|---|---|
result | string | Returns 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"
}
Parameter | Type | Description |
---|---|---|
NoSuchAccount | string | The specified account_id does not exist. |
ErrorLoadingAccount | string | Storage read error. |
ErrorSavingAccount | string | Storage write error. |
InternalError | string | Unhandled internal error. |