Skip to content

getFeeRate

getFeeRate(config): Promise<GetFeeRateResponse>

Gets the recommended fee rate

Import

ts
import { getFeeRate } from "@midl-xyz/midl-js-core";

Example

ts
const feeRate = await getFeeRate(config);
console.log(feeRate);

Parameters

NameTypeDescription
configConfigThe configuration object

Returns

Promise<GetFeeRateResponse>

The recommended fee rate object

GetFeeRateResponse

NameTypeDescription
economyFeenumberThe economy fee rate
fastestFeenumberThe fastest fee rate
halfHourFeenumberThe half hour fee rate
hourFeenumberThe hour fee rate
minimumFeenumberThe minimum fee rate