Skip to content

useLastBlock

Retrieve last BTC block processed by the executor contract.

Import

ts
import { useLastBlock } from "@midl-xyz/midl-js-executor-react";

Example

tsx
const { lastBlock } = useLastBlock();

Returns

NameTypeDescription
lastBlocknumber | undefinedThe last BTC block number