signMultisigTxHex function
Implementation
String signMultisigTxHex(String multisigTxHex)
{
Pointer<Char> multisigTxHexPointer = multisigTxHex.toNativeUtf8().cast<Char>();
final errorBoxPointer = monero_flutter.buildErrorBoxPointer();
Pointer<Char> resultPointer = monero_flutter.bindings.sign_multisig_tx_hex(multisigTxHexPointer, errorBoxPointer);
String hex = resultPointer.cast<Utf8>().toDartString();
calloc.free(multisigTxHexPointer);
calloc.free(resultPointer);
final errorInfo = monero_flutter.extractErrorInfo(errorBoxPointer);
if (0 != errorInfo.code) {
throw Exception(errorInfo.getErrorMessage());
}
return hex;
}