Skip to content

getBTCFeeRate

getBTCFeeRate(config, client): Promise<bigint>

Gets the BTC fee rate defined in the Executor contract.

Import

ts
import { getBTCFeeRate } from "@midl/executor";

Example

ts
const feeRate = await getBTCFeeRate(config, client);

Parameters

NameTypeDescription
configConfigThe configuration object.
clientClientViem's client instance.

Returns

Promise<bigint> — The BTC fee rate.