Instant Distribution Events
Query IDA Events
Last updated
Was this helpful?
Query IDA Events
Last updated
Was this helpful?
indexDistributionClaimed
: emits when a subscriber claims a pending distribution. This will increment the super balance of the subscriber
Sample Subgraph Query:
subscriptionApprovedEvents
: emits when a subscribed approves a subscription. If the subscribed has any unclaimed distributions, this will increment the token balance of the subscriber
Sample Subgraph Query:
indexUpdatedEvents
: emits when an index is updated. This will happen when a publisher distributes funds to an index. If a subscriber has approved the subscription by calling approveSubscription()
, then these events will increment the userβs balance. In this case, weβd recommend getting a userβs list of index subscriptions and then simply calling balanceOf()
when an indexUpdatedEvent is emitted for one of those subscriptions.
Sample Subgraph Queries
Then, you can listen for events for the above indexIds^