estimateExternalMessageFee method

Future<({int forwardFee, int gasFee, int inForwardFee, int storageFee})> estimateExternalMessageFee(
  1. InternalAddress address, {
  2. required Cell body,
  3. Cell? initCode,
  4. Cell? initData,
  5. required bool ignoreSignature,
})
inherited

Returns a fee estimate for the external message as a record, wrapped in a Future:

Future<({
  int inForwardFee,
  int storageFee,
  int gasFee,
  int forwardFee,
})>

Implementation

Future<
    ({
      int forwardFee,
      int gasFee,
      int inForwardFee,
      int storageFee,
    })> estimateExternalMessageFee(
  InternalAddress address, {
  required Cell body,
  Cell? initCode,
  Cell? initData,
  required bool ignoreSignature,
}) async {
  var fees = await _estimateFee(
    address,
    body: body,
    initCode: initCode,
    initData: initData,
    ignoreSignature: ignoreSignature,
  );

  return (
    inForwardFee: fees.sourceFees.inForwardFee,
    storageFee: fees.sourceFees.storageFee,
    gasFee: fees.sourceFees.gasFee,
    forwardFee: fees.sourceFees.forwardFee,
  );
}