opd static method

Future<List<String>> opd(
  1. List<Bytes> args
)

Disassemble a compiled clvm script from hex.

Implementation

static Future<List<String>> opd(List<Bytes> args) async {
  List<String> strArgs = [ ];

  strArgs.addAll(await Future.wait(
      args.map((e) => api.bytesToHex(bytes: e.byteList)).toList()));
  final result = await api.cmdProgramOpd(args: strArgs);
  final strList = result.map((e) => e.toString()).toList();
  return strList;
}