Events
Query event stream
Changed onRetrieves a stream of events for the specified cryptocurrency.
get/v1/cryptos/{cryptoCode}/events
Request
- Base URL/ (relative, and the document was published on a file host, not at the API’s origin)
- AuthHTTP basic
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
cryptoCodestring required
The cryptocurrency code to track (e.g., 'BTC' for Bitcoin, 'LTC' for Litecoin).
Query parameters
lastEventIdinteger
Will query all events which happened after this event ID; the first event has ID 1 (default: 0).
longPollingboolean
If no events have been received since lastEventId, the call will block (default: false).
limitinteger
Limit the maximum number of events to return (default: null).
Response
Event stream retrieved successfully.
Example response
[
{
"data": {
"height": 104,
"hash": "1f31c605c0a5d54b65fa39dc8cb4db025be63c66280279ade9338571a9e63d35",
"previousBlockHash": "7639350b31f3ce07ff976ebae772fef1602b30a10ccb8ca69047fe0fe8b9083c",
"cryptoCode": "BTC",
"confirmations": 1
}
}
]Changes
- info
added to the
/response propertyanyOflist for the response status - info
the response property
became required for the status - info
the response property
became required for the status - info
removed from the
/response propertyoneOflist for the response status
- info
- info
added the optional property
////////to the response with the status
- info