buildGetDDOTx method

Future<Transaction> buildGetDDOTx (String ontid)

Implementation

Future<Transaction> buildGetDDOTx(String ontid) async {
  var method = 'getDDO';
  var struct = Struct();
  struct.list.add(Convert.strToBytes(ontid));

  var pb = VmParamsBuilder();
  pb.pushNativeCodeScript([struct]);

  var txb = TxBuilder();
  return txb.makeNativeContractTx(
      method, pb.buf.bytes, await Address.fromValue(ontidContract));
}