public async Task <string> SetTextRequestAsync(string fullName, TextDataKey textDataKey, string value) { var fullNameNode = _ensUtil.GetNameHash(fullName).HexToByteArray(); var resolverService = await GetResolverAsync(fullNameNode).ConfigureAwait(false); return(await resolverService.SetTextRequestAsync(fullNameNode, textDataKey.GetDataKeyAsString(), value)); }
public async Task <string> ResolveTextAsync(string fullName, TextDataKey textDataKey) { var fullNameNode = _ensUtil.GetNameHash(fullName).HexToByteArray(); var resolverService = await GetResolverAsync(fullNameNode).ConfigureAwait(false); return(await resolverService.TextQueryAsync(fullNameNode, textDataKey.GetDataKeyAsString())); }