Get Events
Query on-chain events by their name in the specified blocks heights or block IDs.
get
https://flow-mainnet.g.alchemy.com/v2/demo/events
/
Query on-chain events by their name in the specified blocks heights or block IDs.

Example:

Request:

HTTP GET
cURL
https://flow-mainnet.g.alchemy.com/v2/demo/events?end_height=28743110&start_height=28743106&type=A.0b2a3299cc857e29.TopShot.Deposit
flow-mainnet.g.alchemy.com
curl --location --request GET 'https://flow-mainnet.g.alchemy.com/v2/demo/events/?type=A.0b2a3299cc857e29.TopShot.Deposit&start_height=28743106&end_height=28743110'

Response

  • block_id -String- A 32-byte unique identifier of each block
  • block_height -String- Block height of a given set of events
  • block_timestamp -String- Timestamp of a proposer's claim for block construction
  • events -Array- Event data
    • type -String- String denoting the event type structure defined here
    • transaction_id -String- A 32-byte unique identifier for each transaction
    • transaction_index -String- Index of each individual transaction id for a given set of events
    • event_index -String- Index of each individual event
    • payload -String- The transaction payload contains the data that identifies the operations applied by the tx
[
{
"block_id": "af845781fa192e7539ec41974299a891da298a154bbf7cd4469c1703c71c4ce0",
"block_height": "28743106",
"block_timestamp": "2022-04-29T01:15:43.891986377Z",
"events": [
{
"type": "A.0b2a3299cc857e29.TopShot.Deposit",
"transaction_id": "31f28256dfd5426caa1dc4e0ec63a6c246430a86c0dbe9c9a3dd8eac0378402c",
"transaction_index": "3",
"event_index": "4",
"payload": "eyJ0eXBlIjoiRXZlbnQiLCJ2YWx1ZSI6eyJpZCI6IkEuMGIyYTMyOTljYzg1N2UyOS5Ub3BTaG90LkRlcG9zaXQiLCJmaWVsZHMiOlt7Im5hbWUiOiJpZCIsInZhbHVlIjp7InR5cGUiOiJVSW50NjQiLCJ2YWx1ZSI6IjE5MzQ2NDA0In19LHsibmFtZSI6InRvIiwidmFsdWUiOnsidHlwZSI6Ik9wdGlvbmFsIiwidmFsdWUiOnsidHlwZSI6IkFkZHJlc3MiLCJ2YWx1ZSI6IjB4N2JmNWFmZTZhYTgzYjY1NiJ9fX1dfX0K"
}
..........
]
},
{
"block_id": "c2449d3e8d8189e00743c2616bb97ac02e51224d9d84b4830058d0a23bb3c9fc",
"block_height": "28743109",
"block_timestamp": "2022-04-29T01:15:47.614846835Z",
"events": [
{
"type": "A.0b2a3299cc857e29.TopShot.Deposit",
"transaction_id": "f214f9d1697d2e90902cc891953a35990422b2978b79e97c23ab32fd1ffddf8e",
"transaction_index": "1",
"event_index": "6",
"payload": "eyJ0eXBlIjoiRXZlbnQiLCJ2YWx1ZSI6eyJpZCI6IkEuMGIyYTMyOTljYzg1N2UyOS5Ub3BTaG90LkRlcG9zaXQiLCJmaWVsZHMiOlt7Im5hbWUiOiJpZCIsInZhbHVlIjp7InR5cGUiOiJVSW50NjQiLCJ2YWx1ZSI6IjM5MjAyOTEifX0seyJuYW1lIjoidG8iLCJ2YWx1ZSI6eyJ0eXBlIjoiT3B0aW9uYWwiLCJ2YWx1ZSI6eyJ0eXBlIjoiQWRkcmVzcyIsInZhbHVlIjoiMHg4ZTY4MTQ0NDFhMzRmZmNmIn19fV19fQo="
}
..........
]
}........
]