GetExpectedExchangeRequests
Retrieves pending (expected) currency exchange requests that have not yet been processed.
Request
GET /nxt?requestType=getExpectedExchangeRequests
Parameters
| Name | Type | Description | Required |
|---|---|---|---|
account | string | Filter by account ID | Optional |
currency | long | Filter by currency ID | Optional |
baseCurrency | long | Filter by base currency ID | 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 all expected exchange requests
curl "http://localhost:22024/nxt?requestType=getExpectedExchangeRequests"
# Filter by account and currency
curl "http://localhost:22024/nxt?requestType=getExpectedExchangeRequests&account=1234567890¤cy=987654321"