ObjktClient
public class ObjktClient
Client for interacting with the API of the popular NFT marketplace, OBJKT.com Client exposes functions for fetching metadata, pricing, purchase offers, listing etc
-
Cached metadata of NFT collections, e.g. name, thumbnailURL etc
Declaration
Swift
public var collections: [String : ObjktCollection] -
Cached metadata of specific tokens, e.g. prices, offers etc
Declaration
Swift
public var tokens: [String : ObjktTokenReponse]
-
Init a
ObjktClientwith aNetworkServiceand aTezosNodeClientConfig.Declaration
Swift
public init(networkService: NetworkService, config: TezosNodeClientConfig)Parameters
networkServiceNetworkServiceused to manage network communication.configTezosNodeClientConfigused to apss in settings.
-
Take in an array of contract addresses, and return a list of the ones that we currently have no metadata for
Declaration
Swift
public func unresolvedCollections(addresses: [String]) -> [String] -
Search OBJKT to find metadata on the list of addresses provided
Declaration
Swift
public func resolveCollectionsAll(addresses: [String], completion: @escaping ((Result<Bool, KukaiError>) -> Void)) -
Find the metadata of a list of contracts, used recurrisvely to find all collections while limited to request query size
Declaration
Swift
public func resolveCollectionsPage(addresses: ArraySlice<String>, completion: @escaping ((Result<GraphQLResponse<ObjktCollections>, KukaiError>) -> Void)) -
Find the meatdata of a specific token
Declaration
Swift
public func resolveToken(address: String, tokenId: Decimal, forOwnerWalletAddress walletAddress: String, completion: @escaping ((Result<GraphQLResponse<ObjktTokenReponse>, KukaiError>) -> Void)) -
Helper to fetch a specific token metadata from the cache
Declaration
Swift
public func tokenResponse(forAddress: String, tokenId: Int) -> ObjktTokenReponse? -
Clear all the cached data
Declaration
Swift
public func deleteCache()
Install in Dash