packIntoCell function

Future<(String, String)> packIntoCell({
  1. required List<AbiParam> params,
  2. required TokensObject tokens,
  3. required String? abiVersion,
})

Return (base64 tvc, hash) or throws error

Implementation

Future<(String, String)> packIntoCell({
  required List<AbiParam> params,
  required TokensObject tokens,
  required String? abiVersion,
}) async {
  final data = await createLib().packIntoCell(
    params: jsonEncode(params),
    tokens: jsonEncode(tokens),
    version: abiVersion,
  );

  return (data[0], data[1]);
}