GetAccountCurrencySavings
Retrieves automated savings plans for a specific account's currency holdings.
Request
GET /nxt?requestType=getAccountCurrencySavings
Parameters
| Name | Type | Description | Required |
|---|---|---|---|
account | string | Account ID or NXT address | Yes |
currency | long | Filter by currency | Optional |
includeCurrencyInfo | boolean | Include currency metadata | Optional |
Response
{
"accountCurrencySavings": [
{
"account": "1234567890",
"accountRS": "NXT-abcd-efgh-ijkl",
"currency": "987654321",
"unitsQNT": "1000000000",
"targetUnitsQNT": "2000000000"
}
]
}
Response Fields Description
| Field | Type | Description |
|---|---|---|
account | string | Account ID |
accountRS | string | Account in NXT format |
currency | string | Currency ID |
unitsQNT | string | Current savings units |
targetUnitsQNT | string | Target savings units |
Example
# Get all savings plans for an account
curl "http://localhost:22024/nxt?requestType=getAccountCurrencySavings&account=1234567890"
# Get savings for a specific currency
curl "http://localhost:22024/nxt?requestType=getAccountCurrencySavings&account=1234567890¤cy=987654321"