public Task <bool> HasDNSRecordsQueryAsync(byte[] node, byte[] name, BlockParameter blockParameter = null) { var hasDNSRecordsFunction = new HasDNSRecordsFunction(); hasDNSRecordsFunction.Node = node; hasDNSRecordsFunction.Name = name; return(ContractHandler.QueryAsync <HasDNSRecordsFunction, bool>(hasDNSRecordsFunction, blockParameter)); }
public Task <bool> HasDNSRecordsQueryAsync(byte[] Node, byte[] Name, BlockParameter BlockParameter = null) { var HasDNSRecordsFunction = new HasDNSRecordsFunction { Node = Node, Name = Name }; return(ContractHandler.QueryAsync <HasDNSRecordsFunction, bool>(HasDNSRecordsFunction, BlockParameter)); }
public async Task <bool> HasRecord() { var Name = Encoding.ASCII.GetString(DNS.Models.Domain.FromString($"{Domain}.eth").ToArray()); var HasDNSRecordsFunction = new HasDNSRecordsFunction() { Node = EnsUtil.GetNameHash($"{Domain}.eth").HexToByteArray(), Name = EnsUtil.GetLabelHash(Name).HexToByteArray(), }; return(await PublicResolverService.HasDNSRecordsQueryAsync(HasDNSRecordsFunction)); }
public Task <bool> HasDNSRecordsQueryAsync(HasDNSRecordsFunction HasDNSRecordsFunction, BlockParameter BlockParameter = null) { return(ContractHandler.QueryAsync <HasDNSRecordsFunction, bool>(HasDNSRecordsFunction, BlockParameter)); }