claimTokens method

Future<String> claimTokens(
  1. BigInt amount,
  2. EthereumAddress delegate,
  3. List<Uint8List> merkleProof, {
  4. required Credentials credentials,
  5. 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> claimTokens(BigInt amount, _i1.EthereumAddress delegate,
    List<_i2.Uint8List> merkleProof,
    {required _i1.Credentials credentials,
    _i1.Transaction? transaction}) async {
  final function = self.abi.functions[7];
  assert(checkSignature(function, '76122903'));
  final params = [amount, delegate, merkleProof];
  return write(credentials, transaction, function, params);
}