Skip to content

Commit

Permalink
Merge pull request #89 from onflow/nialexsan/get-block-range-amendment
Browse files Browse the repository at this point in the history
getBlock height limit
  • Loading branch information
nialexsan committed Apr 23, 2024
2 parents 272760f + 676aca4 commit 09031a7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ To get information about a block, the functions `getCurrentBlock` and `getBlock`
```

Returns the block at the given height.
If the given block does not exist the function returns `nil`.
If the block exists within the accessible range defined by `flow.DefaultTransactionExpiry - 10` (`590` blocks), it is returned successfully.
If the block at the given height does not exist or is outside the default transaction expiration range of `590` blocks below the current sealed block, the function returns `nil`.

The `Block` type contains the identifier, height, and timestamp:

Expand Down

0 comments on commit 09031a7

Please sign in to comment.