Skip to content

useEstimateGas

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

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

Estimate the gas for a message

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

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