computeStorageFee function

Future<StorageFeeInfo> computeStorageFee({
  1. required String config,
  2. required String account,
  3. required int utime,
  4. bool? isMasterchain,
})

config - value from Transport.getBlockchainConfig account - base64-encoded boc utime - seconds isMasterchain - default: false

Implementation

Future<StorageFeeInfo> computeStorageFee({
  required String config,
  required String account,
  required int utime,
  bool? isMasterchain,
}) async {
  final data = await createLib().computeStorageFee(
    config: config,
    account: account,
    utime: utime,
    isMasterchain: isMasterchain ?? false,
  );

  return StorageFeeInfo.fromJson(jsonDecode(data));
}