setRecord method

Future<String> setRecord(
  1. Uint8List node,
  2. EthereumAddress owner,
  3. EthereumAddress resolver,
  4. BigInt ttl, {
  5. required Credentials credentials,
  6. 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> setRecord(_i2.Uint8List node, _i1.EthereumAddress owner,
    _i1.EthereumAddress resolver, BigInt ttl,
    {required _i1.Credentials credentials,
    _i1.Transaction? transaction}) async {
  final function = self.abi.functions[8];
  assert(checkSignature(function, 'cf408823'));
  final params = [node, owner, resolver, ttl];
  return write(credentials, transaction, function, params);
}