Skip to content

useBTCFeeRate ​

Fetches the BTC fee rate defined in the Executor contract.

Import ​

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

Example ​

ts
const { data: feeRate } = useBTCFeeRate();

Parameters ​

NameTypeDescription
queryUseQueryOptions (optional)React Query options (minus queryFn and queryKey).
configConfig (optional)Custom configuration to override the default.

Returns ​

Returns a React Query result object with data, isLoading, error, and other query state fields.

Released under the MIT License