sweep method

Future<String> sweep(
  1. EthereumAddress dest, {
  2. required Credentials credentials,
  3. Transaction? transaction,
})

The optional transaction parameter can be used to override parameters like the gas price, nonce and max gas. The data and to fields will be set by the contract.

Implementation

Future<String> sweep(_i1.EthereumAddress dest,
    {required _i1.Credentials credentials,
    _i1.Transaction? transaction}) async {
  final function = self.abi.functions[30];
  assert(checkSignature(function, '01681a62'));
  final params = [dest];
  return write(credentials, transaction, function, params);
}