TezosDomainsClient
public class TezosDomainsClient
A client class allowing integration with the tezos domains GraphQL API. See more here: https://tezos.domains/
-
Object to wrap up a response fomr both networks
See moreDeclaration
Swift
public struct BothNetworkReverseRecord
-
Init a
TezosDomainsClientwith aNetworkServiceand aTezosNodeClientConfig.Declaration
Swift
public init(networkService: NetworkService, config: TezosNodeClientConfig)Parameters
networkServiceNetworkServiceused to manage network communication.configTezosNodeClientConfigused to apss in settings.
-
Get Tezos domain response for a given address
Declaration
Swift
public func getDomainFor(address: String, url: URL? = nil, completion: @escaping ((Result<GraphQLResponse<TezosDomainsDomainResponse>, KukaiError>) -> Void)) -
Query both mainnet and ghostnet versions of Tezos domains to find all records for the given address
Declaration
Swift
public func getMainAndGhostDomainFor(address: String, completion: @escaping ((Result<BothNetworkReverseRecord, KukaiError>) -> Void)) -
Find the tz address of a given domain
Declaration
Swift
public func getAddressFor(domain: String, completion: @escaping ((Result<GraphQLResponse<TezosDomainsAddressResponse>, KukaiError>) -> Void))
-
Bulk function for fetching domains for an array of addresses
Declaration
Swift
public func getDomainsFor(addresses: [String], url: URL? = nil, completion: @escaping ((Result<GraphQLResponse<TezosDomainsDomainBulkResponse>, KukaiError>) -> Void)) -
Bulk function for fetching domains for an array of addresses, check ghostnet and mainnet for each
Declaration
Swift
public func getMainAndGhostDomainsFor(addresses: [String], completion: @escaping ((Result<[String : BothNetworkReverseRecord], KukaiError>) -> Void)) -
Bulk function to find all domains for a list of addresses
Declaration
Swift
public func getAddressesFor(domains: [String], completion: @escaping ((Result<GraphQLResponse<TezosDomainsAddressBulkResponse>, KukaiError>) -> Void))
Install in Dash