Account.estimateTransfer() method
Estimates the gas fees for a transfer transaction.
Signature:
estimateTransfer(transferParams: TransferParams): Promise<EstimateResult>;
Parameters
Parameter | Type | Description |
---|---|---|
transferParams | TransferParams | The transfer parameters for the transaction. |
Returns:
Promise<EstimateResult>
A promise that resolves to an EstimateResult object containing the estimated fees and the TransactionExecutor representing the transaction.
Remarks
This function estimates the gas fees required to execute the specified transfer transaction on the blockchain. The estimation is based on the current gas prices and limits.