transfer method

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

Implementation

Future<String> transfer({
  required String destinationB256Address,
  required int fractionalAmount,
  required String assetId,
}) async {
  final (transferRequest, _) =
      await _walletUnlocked.genTransferTransactionRequest(
          destinationB256Address: destinationB256Address,
          fractionalAmount: fractionalAmount,
          assetId: assetId);
  return _walletUnlocked
      .sendTransaction(transactionRequestHexOrJson: transferRequest)
      .then(addHexPrefix);
}