GetAccountExchangeRequests
Retrieves currency exchange requests for a specific account, optionally filtered by currency and base currency.
Request
GET /nxt?requestType=getAccountExchangeRequests
Parameters
| Name | Type | Description | Required |
|---|---|---|---|
account | string | Account ID | Yes |
currency | long | Filter by currency ID | Optional |
baseCurrency | long | Filter by base currency ID | Optional |
firstIndex | int | Pagination start index | Optional |
lastIndex | int | Pagination end index | Optional |
includeCurrencyInfo | boolean | Include currency metadata in response | Optional |
Response
{
"exchangeRequests": [
{
"transactionFullHash": "abc123...",
"timestamp": 123456789,
"currency": "987654321",
"baseCurrency": "555555555",
"unitsQNT": "1000000000",
"rateQNTPerUnit": "500",
"account": "1234567890",
"height": 250
}
]
}
Example
# Get exchange requests for an account
curl "http://localhost:22024/nxt?requestType=getAccountExchangeRequests&account=1234567890"
# Filter by account, currency, and base currency
curl "http://localhost:22024/nxt?requestType=getAccountExchangeRequests&account=1234567890¤cy=987654321&baseCurrency=555555555"