Skip to main content

GetAllExchanges

Retrieves all currency exchanges across the blockchain.

Request

GET /nxt?requestType=getAllExchanges

Parameters

NameTypeDescriptionRequired
firstIndexintPagination start indexOptional
lastIndexintPagination end indexOptional
timestampintFilter exchanges newer than timestampOptional
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 all exchanges
curl "http://localhost:22024/nxt?requestType=getAllExchanges"

# Get all exchanges after a timestamp
curl "http://localhost:22024/nxt?requestType=getAllExchanges&timestamp=123456789"