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
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
options | { maxFee? : bigint ; to : string ; value : bigint ; } | - |
options.maxFee? | bigint | Max fee to pay for gas (attoFIL/gas units). Defaults to 0n. |
options.to | string | Address to send the message to |
options.value | bigint | Value to send with the message |
Returns
Section titled “Returns”UseQueryResult
<{ gas
: bigint
; symbol
: string
; total
: bigint
; }, Error
>