Skip to main content

GetAccountExchangeRequests

Retrieves currency exchange requests for a specific account, optionally filtered by currency and base currency.

Request

GET /nxt?requestType=getAccountExchangeRequests

Parameters

NameTypeDescriptionRequired
accountstringAccount IDYes
currencylongFilter by currency IDOptional
baseCurrencylongFilter by base currency IDOptional
firstIndexintPagination start indexOptional
lastIndexintPagination end indexOptional
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 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&currency=987654321&baseCurrency=555555555"