transfer method

Future transfer(
  1. Web3 web3,
  2. String walletAddress,
  3. String receiverAddress, {
  4. String? tokensAmount,
  5. BigInt? amountInWei,
  6. String network = 'fuse',
  7. Map? transactionBody,
})

Implementation

Future<dynamic> transfer(
  Web3 web3,
  String walletAddress,
  String receiverAddress, {
  String? tokensAmount,
  BigInt? amountInWei,
  String network = 'fuse',
  Map? transactionBody,
}) async {
  Map<String, dynamic> data = await web3.transferOffChain(
    walletAddress,
    receiverAddress,
    tokensAmount: tokensAmount,
    amountInWei: amountInWei,
    network: network,
    transactionBody: transactionBody,
  );
  Response response = await _dio.post(
    '/v1/relay',
    options: options,
    data: data,
  );
  return response.data;
}