transferToken method

Future<Map> transferToken(
  1. Wallet wallet,
  2. String to,
  3. String tokenContractAddress, [
  4. BigInt? amountInWei,
  5. Wallet? gasPayer,
])

Implementation

Future<Map> transferToken(
    Wallet wallet, String to, String tokenContractAddress,
    [BigInt? amountInWei, Wallet? gasPayer]) {
  amountInWei ??= BigInt.zero;
  Contract contract = Contract.fromJsonString(vthoAbi);
  return transact(
      wallet, contract, 'transfer', [to, amountInWei], tokenContractAddress,
      gasPayer: gasPayer);
}