Skip to main content

Doc autogenerated from onflow/sdk/src/block/block.ts

block

Returns the latest block (optionally sealed or not), by id, or by height

Import


_10
import { block } from "@onflow/sdk"

Parameters

options (optional)

  • Type: BlockQueryOptions

_10
interface BlockQueryOptions {
_10
sealed?: boolean
_10
height?: number
_10
id?: string
_10
}

opts (optional)

  • Type: object
  • Description: Optional parameters

Returns

Promise<Block>


Rate this page