Skip to main content

useBlock

Callable

  • useBlock(tag?: MaybeRefOrGetter<best | finalized>, options?: ChainComposableOptions): PromiseLikeAsyncState<any>

  • Composable for fetching information about the latest block.


    Parameters

    • tag: MaybeRefOrGetter<best | finalized> = "finalized"

      Which block to target

    • optionaloptions: ChainComposableOptions

      Additional options

    Returns PromiseLikeAsyncState<any>

    The latest finalized or best block