Skip to main content
Structure
struct DefaultCrossmintService

Initializers

init(apiKey:appIdentifier:httpClient:requestBuilder:jsonCoder:)

init(apiKey: ApiKey, appIdentifier: String, httpClient: HTTPClient = .live, requestBuilder: RequestBuilder = DefaultRequestBuilder(), jsonCoder: JSONCoder = DefaultJSONCoder())

Instance Properties

isProductionEnvironment

Inherited from CrossmintService.isProductionEnvironment.
var isProductionEnvironment: Bool { get }

Instance Methods

executeRequest(:errorType::)

Inherited from CrossmintService.executeRequest(_:errorType:_:).
func executeRequest<E>(_ endpoint: Endpoint, errorType: E.Type, _ transform: (NetworkError) -> E? = { _ in nil }) async throws(E) where E : ServiceError

executeRequest(:errorType::)

Inherited from CrossmintService.executeRequest(_:errorType:_:).
func executeRequest<T, E>(_ endpoint: Endpoint, errorType: E.Type, _ transform: (NetworkError) -> E? = { _ in nil }) async throws(E) -> T where T : Decodable, E : ServiceError

executeRequestForRawData(:errorType::)

Inherited from CrossmintService.executeRequestForRawData(_:errorType:_:).
func executeRequestForRawData<E>(_ endpoint: Endpoint, errorType: E.Type, _ transform: (NetworkError) -> E? = { _ in nil }) async throws(E) -> Data where E : ServiceError

getApiBaseURL()

Inherited from CrossmintService.getApiBaseURL().
func getApiBaseURL() throws(CrossmintServiceError) -> URL