Skip to main content

GetExpectedExchangeRequests

Retrieves pending (expected) currency exchange requests that have not yet been processed.

Request

GET /nxt?requestType=getExpectedExchangeRequests

Parameters

NameTypeDescriptionRequired
accountstringFilter by account IDOptional
currencylongFilter by currency IDOptional
baseCurrencylongFilter by base currency IDOptional
includeCurrencyInfobooleanInclude currency metadata in responseOptional

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&currency=987654321"