Skip to main content

GetAccountCurrencySavings

Retrieves automated savings plans for a specific account's currency holdings.

Request

GET /nxt?requestType=getAccountCurrencySavings

Parameters

NameTypeDescriptionRequired
accountstringAccount ID or NXT addressYes
currencylongFilter by currencyOptional
includeCurrencyInfobooleanInclude currency metadataOptional

Response

{
"accountCurrencySavings": [
{
"account": "1234567890",
"accountRS": "NXT-abcd-efgh-ijkl",
"currency": "987654321",
"unitsQNT": "1000000000",
"targetUnitsQNT": "2000000000"
}
]
}

Response Fields Description

FieldTypeDescription
accountstringAccount ID
accountRSstringAccount in NXT format
currencystringCurrency ID
unitsQNTstringCurrent savings units
targetUnitsQNTstringTarget 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&currency=987654321"