transfer method

Future<String> transfer({
  1. required String sender,
  2. required String to,
  3. required BigInt value,
  4. required Uint8List seed,
  5. EvmFeeInformation<EvmGasPrice>? feeInfo,
  6. List<AccessListItem>? accessList,
})

Implementation

Future<String> transfer({
  required String sender,
  required String to,
  required BigInt value,
  required Uint8List seed,
  EvmFeeInformation? feeInfo,
  List<AccessListItem>? accessList,
}) async {
  final function = abi.functions[7];
  assert(function.functionSelectorHex == "a9059cbb");
  return await interact(
    function: function.addValues(values: [to, value]),
    seed: seed,
    sender: sender,
    feeInfo: feeInfo,
    accessList: accessList,
  );
}