Unity FlowSDK 2.0.0
FLOW Unity SDK
Loading...
Searching...
No Matches
DapperLabs.Flow.Sdk.Events Class Reference

Event related functions More...

Static Public Member Functions

static async Task< List< FlowEventGroup > > GetForBlockHeightRange (string type, ulong startHeight, ulong endHeight)
 Get all event groups (each of which can contain several events) of a given type in a given block height range More...
 
static async Task< List< FlowEventGroup > > GetForBlockIds (string type, List< string > blockIds)
 Get all event groups (each of which can contain several events) of a given type in a given list of blocks More...
 

Detailed Description

Event related functions

Member Function Documentation

◆ GetForBlockHeightRange()

static async Task< List< FlowEventGroup > > DapperLabs.Flow.Sdk.Events.GetForBlockHeightRange ( string  type,
ulong  startHeight,
ulong  endHeight 
)
inlinestatic

Get all event groups (each of which can contain several events) of a given type in a given block height range

Parameters
typeThe type of event to query for
startHeightThe block height at which to begin searching
endHeightThe block height at which to end searching
Returns
A Task that resolves to a FlowEventGroup

◆ GetForBlockIds()

static async Task< List< FlowEventGroup > > DapperLabs.Flow.Sdk.Events.GetForBlockIds ( string  type,
List< string >  blockIds 
)
inlinestatic

Get all event groups (each of which can contain several events) of a given type in a given list of blocks

Parameters
typeThe type of event to query for
blockIdsA List of strings containing the blocks to search. Must not exceed 50 block ids.
Returns
A Task that resolves to a List of FlowEventGroups