Documentation Index
Fetch the complete documentation index at: https://docs.crossmint.com/llms.txt
Use this file to discover all available pages before exploring further.
Structure
struct DefaultCrossmintService
Initializers
init(apiKey:appIdentifier:httpClient:requestBuilder:jsonCoder:)
init(apiKey: ApiKey, appIdentifier: String, httpClient: HTTPClient = .live, requestBuilder: any RequestBuilder = DefaultRequestBuilder(), jsonCoder: any 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