genTransferTransactionRequest method

  1. @override
Future<(String, String)> genTransferTransactionRequest({
  1. required String destinationB256Address,
  2. required int fractionalAmount,
  3. required String assetId,
})
override

Returns hex string on mobile and json tx request on web

Implementation

@override
Future<(String, String)> genTransferTransactionRequest(
    {required String destinationB256Address,
    required int fractionalAmount,
    required String assetId}) async {
  final tuple = await promiseToFuture(js_wallet.genTransferTransactionRequest(
      _wallet.privateKey,
      _wallet.networkUrl,
      addHexPrefix(destinationB256Address),
      fractionalAmount,
      addHexPrefix(assetId)));
  return (tuple[0] as String, tuple[1] as String);
}