Skip to content

useEstimateGas

function useEstimateGas(options: {
maxFee: bigint;
to: string;
value: bigint;
}): UseQueryResult<{
gas: bigint;
symbol: string;
total: bigint;
}, Error>;

Defined in: packages/iso-filecoin-react/src/wallet-provider.js:557

Estimate the gas for a message

Parameters

ParameterTypeDescription
options{ maxFee: bigint; to: string; value: bigint; }-
options.maxFee?bigintMax fee to pay for gas (attoFIL/gas units). Defaults to 0n.
options.tostringAddress to send the message to
options.valuebigintValue to send with the message

Returns

UseQueryResult<{ gas: bigint; symbol: string; total: bigint; }, Error>