Skip to content

getBTCFeeRate

getBTCFeeRate(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(client);

Parameters

NameTypeDescription
clientClientViem's client instance.

Returns

Promise<bigint> — The BTC fee rate.

Released under the MIT License