build static method

String build(
  1. Network network,
  2. MorpheusAsset asset,
  3. SecpPublicKey senderPubKey,
  4. int nonce,
)

Implementation

static String build(Network network, MorpheusAsset asset,
    SecpPublicKey senderPubKey, int nonce) {
  final nativeNetwork = network.networkNativeName.toNativeUtf8();
  try {
    return DartApi.native.morpheusTxBuilder
        .build(nativeNetwork, asset._ffi, senderPubKey.ffi, nonce)
        .extract((res) => res.asString);
  } finally {
    calloc.free(nativeNetwork);
  }
}