Send Token

To send tokens to another address

This function required RSA privateKey has been created and publicKey signed, see First Access


To send HTR


String addressTo = 'HGxMiFuweTvXTuZGSBwPdEt13vijtU8bwN';
String amount = '201.75';  // double as String or int as String "20175"

String success = '';
String hash = '';
(success, hash) = await walletUser.send(addressTo, amount, 'HTR');  // To send Hathor
print(success); // "success"
print(hash); // "hash"

To send others Tokens


String addressTo = 'HGxMiFuweTvXTuZGSBwPdEt13vijtU8bwN';
String amount = '201.75';  // double as String or int as String "20175"

String success = '';
String hash = '';
(success, hash) = await walletUser.send(addressTo, amount, tokenCode); // To send Token
print(success);
print(hash);

Last updated