Events Handling
Blockchain Events play a crucial role in understanding the real-time behavior of streams. The primary event to watch for is the flowUpdated
event. You can retrieve these events from our subgraph (opens in a new tab) or query them directly on-chain.
query MyQuery {
flowUpdatedEvents(where: {receiver: "MY_ADDRESS"}) {
sender
token
flowRate
timestamp
}
}
💡
Use our console playground (opens in a new tab) to find the right queries for you. Check out our protocol docs (opens in a new tab) for links to all of our Subgraph APIs