Skip to content

useLastBlock ​

Retrieve last BTC block processed by the executor contract.

Import ​

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

Example ​

tsx
const { lastBlock } = useLastBlock();

Returns ​

NameTypeDescription
lastBlocknumber | undefinedThe last BTC block number

Released under the MIT License