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

Block related functions More...

Static Public Member Functions

static async Task< FlowBlockGetById (string id)
 Gets a Block by its ID More...
 
static async Task< FlowBlockGetByHeight (ulong height)
 Gets a Block by its block height More...
 
static async Task< FlowBlockGetLatest (bool isSealed=true)
 Gets the latest block on the chain. More...
 

Detailed Description

Block related functions

Member Function Documentation

◆ GetByHeight()

static async Task< FlowBlock > DapperLabs.Flow.Sdk.Blocks.GetByHeight ( ulong  height)
inlinestatic

Gets a Block by its block height

Parameters
heightThe height of the block to fetch
Returns
A Task that will resolve to a FlowBlock

◆ GetById()

static async Task< FlowBlock > DapperLabs.Flow.Sdk.Blocks.GetById ( string  id)
inlinestatic

Gets a Block by its ID

Parameters
idThe ID of the block to fetch
Returns
A Task that will resolve to a FlowBlock that has the given ID

◆ GetLatest()

static async Task< FlowBlock > DapperLabs.Flow.Sdk.Blocks.GetLatest ( bool  isSealed = true)
inlinestatic

Gets the latest block on the chain.

Parameters
isSealedIf True, get the latest sealed block. If false, get the latest available.
Returns
A Task that will resolve into a FlowBlock.