Skip to main content

GetExchangesByOffer

Retrieves all currency exchanges that were executed against a specific exchange offer.

Request

GET /nxt?requestType=getExchangesByOffer

Parameters

NameTypeDescriptionRequired
offerlongExchange offer IDYes
firstIndexintPagination start indexOptional
lastIndexintPagination end indexOptional
includeCurrencyInfobooleanInclude currency metadata in responseOptional

Response

{
"exchanges": [
{
"transactionFullHash": "abc123...",
"timestamp": 123456789,
"unitsQNT": "1000000000",
"rateQNTPerUnit": "500",
"currency": "987654321",
"baseCurrency": "555555555",
"offer": "111111111",
"offerFullHash": "def456...",
"seller": "1234567890",
"buyer": "0987654321",
"block": "50000",
"height": 250
}
]
}

Example

# Get exchanges for a specific offer
curl "http://localhost:22024/nxt?requestType=getExchangesByOffer&offer=111111111"