Skip to main content

Account.estimateTransfer() method

Estimates the gas fees for a transfer transaction.

Signature:

estimateTransfer(transferParams: TransferParams): Promise<EstimateResult>;

Parameters

ParameterTypeDescription
transferParamsTransferParamsThe 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.