public async Task <TransactionReceipt> SetARecord() { var Answer = new Answer() { Domain = DNS.Models.Domain.FromString($"{Domain}.eth"), Type = RecordType.A, Class = RecordClass.Internet, TimeToLive = new TimeToLive() { Value = new TimeSpan(1, 0, 0, 0) }, Record = new A() { Address = new IPv4Address() { Value = IPAddress.Parse("127.0.0.1") } } }; var SetDNSRecordsFunction = new SetDNSRecordsFunction() { Node = EnsUtil.GetNameHash($"{Domain}.eth").HexToByteArray(), Data = Answer.ToArray(), FromAddress = OwnerAddress, Gas = new HexBigInteger(100000), GasPrice = new HexBigInteger(100000), }; return(await PublicResolverService.SetDNSRecordsRequestAndWaitForReceiptAsync(SetDNSRecordsFunction)); }
public Task <TransactionReceipt> SetDNSRecordsRequestAndWaitForReceiptAsync(byte[] node, byte[] data, CancellationTokenSource cancellationToken = null) { var setDNSRecordsFunction = new SetDNSRecordsFunction(); setDNSRecordsFunction.Node = node; setDNSRecordsFunction.Data = data; return(ContractHandler.SendRequestAndWaitForReceiptAsync(setDNSRecordsFunction, cancellationToken)); }
public Task <string> SetDNSRecordsRequestAsync(byte[] node, byte[] data) { var setDNSRecordsFunction = new SetDNSRecordsFunction(); setDNSRecordsFunction.Node = node; setDNSRecordsFunction.Data = data; return(ContractHandler.SendRequestAsync(setDNSRecordsFunction)); }
public Task <string> SetDNSRecordsRequestAsync(byte[] Node, byte[] Data) { var SetDNSRecordsFunction = new SetDNSRecordsFunction { Node = Node, Data = Data }; return(ContractHandler.SendRequestAsync(SetDNSRecordsFunction)); }
public Task <TransactionReceipt> SetDNSRecordsRequestAndWaitForReceiptAsync(byte[] Node, byte[] Data, CancellationTokenSource CancellationToken = null) { var SetDNSRecordsFunction = new SetDNSRecordsFunction { Node = Node, Data = Data }; return(ContractHandler.SendRequestAndWaitForReceiptAsync(SetDNSRecordsFunction, CancellationToken)); }
public Task <TransactionReceipt> SetDNSRecordsRequestAndWaitForReceiptAsync( SetDNSRecordsFunction SetDNSRecordsFunction, CancellationTokenSource CancellationToken = null) { return(ContractHandler.SendRequestAndWaitForReceiptAsync(SetDNSRecordsFunction, CancellationToken)); }
public Task <string> SetDNSRecordsRequestAsync(SetDNSRecordsFunction SetDNSRecordsFunction) { return(ContractHandler.SendRequestAsync(SetDNSRecordsFunction)); }