sendTransaction method

  1. @override
Future<String> sendTransaction({
  1. required String transactionRequestHexOrJson,
})
override

Takes hex string on mobile and json tx request on web

Implementation

@override
Future<String> sendTransaction(
    {required String transactionRequestHexOrJson}) {
  final bytes = hex.decode(removeHexPrefix(transactionRequestHexOrJson));
  return _rustWalletUnlocked
      .sendTransaction(encodedTx: Uint8List.fromList(bytes))
      .then(addHexPrefix);
}