estimateExternalMessageFee method
Future<({int forwardFee, int gasFee, int inForwardFee, int storageFee})>
estimateExternalMessageFee(
- InternalAddress address, {
- required Cell body,
- Cell? initCode,
- Cell? initData,
- 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,
);
}