GetAccountCurrencyVaults
Retrieves time-locked currency vaults for a specific account.
Request
GET /nxt?requestType=getAccountCurrencyVaults
Parameters
| Name | Type | Description | Required |
|---|---|---|---|
account | string | Account ID or NXT address | Yes |
currency | long | Filter by currency | Optional |
height | int | Blockchain height for historical query | Optional |
includeCurrencyInfo | boolean | Include currency metadata | Optional |
Response
{
"accountCurrencyVaults": [
{
"account": "1234567890",
"accountRS": "NXT-abcd-efgh-ijkl",
"currency": "987654321",
"unitsQNT": "5000000000",
"lockHeight": 100000,
"releaseHeight": 101000
}
]
}
Response Fields Description
| Field | Type | Description |
|---|---|---|
account | string | Account ID |
accountRS | string | Account in NXT format |
currency | string | Currency ID |
unitsQNT | string | Locked units |
lockHeight | int | Block height when vault was created |
releaseHeight | int | Block height when units are released |
Example
# Get all vaults for an account
curl "http://localhost:22024/nxt?requestType=getAccountCurrencyVaults&account=1234567890"
# Get vaults for a specific currency
curl "http://localhost:22024/nxt?requestType=getAccountCurrencyVaults&account=1234567890¤cy=987654321"