Get Events
Changed onQuery on-chain events by their name in the specified blocks heights or block IDs.
Request
- Base URLhttps://rest-testnet.onflow.org/v1
- URLhttps://rest-testnet.onflow.org/v1/events
- Authnone declared
Query parameters
The qualified event type.
The event type is identifier of the event as defined here.
The start height of the block range for events. Must be used together with end_height. This parameter is incompatible with block_ids.
The end height of the block range for events. Must be used together with start_height. This parameter is incompatible with block_ids.
List of block IDs. Either provide this parameter or both height parameters. This parameter is incompatible with heights parameters.
A comma-separated list indicating which properties of the content to return.
A minimum number of execution receipts for the execution result.
A set of execution node IDs, one of which must have produced the execution result.
Specifies whether or not to include the executor metadata in the response.
Response
OK
Example response
{
"metadata": {
"executor_metadata": {
"execution_result_id": null,
"executor_ids": [
null,
null
]
}
},
"_links": {
"_self": "_self"
},
"block_timestamp": "2000-01-23T04:56:07.000+00:00",
"block_height": "block_height",
"block_id": "block_id",
"events": [
{
"transaction_id": null,
"payload": "",
"transaction_index": "transaction_index",
"type": "type",
"event_index": "event_index"
},
{
"transaction_id": null,
"payload": "",
"transaction_index": "transaction_index",
"type": "type",
"event_index": "event_index"
}
]
}Changes
- info
added the new optional
queryrequest parameteragreeing_executors_count - info
added the new optional
queryrequest parameterinclude_executor_metadata - info
added the new optional
queryrequest parameterrequired_executor_ids - info
added the optional property
to the response with the status
- info
- warning
deleted the
queryrequest parameteragreeing_executors_count - warning
deleted the
queryrequest parameterinclude_executor_metadata - warning
deleted the
queryrequest parameterrequired_executor_ids - warning
removed the optional property
from the response with the status
- warning