Block related functions
More...
◆ GetByHeight()
static async Task< FlowBlock > DapperLabs.Flow.Sdk.Blocks.GetByHeight |
( |
ulong |
height | ) |
|
|
inlinestatic |
Gets a Block by its block height
- Parameters
-
height | The 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
-
id | The 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
-
isSealed | If True, get the latest sealed block. If false, get the latest available. |
- Returns
- A Task that will resolve into a FlowBlock.