Swift Protocol
protocol CrossmintService : Sendable
var isProductionEnvironment: Bool { get }
func executeRequest<T, E>(_ endpoint: Endpoint, errorType: E.Type) async throws(E) -> T where T : Decodable, E : ServiceError
func executeRequest<E>(_ endpoint: Endpoint, errorType: E.Type) async throws(E) where E : ServiceError
func executeRequest<T, E>(_ endpoint: Endpoint, errorType: E.Type, _ transform: (NetworkError) -> E?) async throws(E) -> T where T : Decodable, E : ServiceError
func executeRequest<E>(_ endpoint: Endpoint, errorType: E.Type, _ transform: (NetworkError) -> E?) async throws(E) where E : ServiceError
func executeRequestForRawData<E>(_ endpoint: Endpoint, errorType: E.Type) async throws(E) -> Data where E : ServiceError
func executeRequestForRawData<E>(_ endpoint: Endpoint, errorType: E.Type, _ transform: (NetworkError) -> E?) async throws(E) -> Data where E : ServiceError
func getApiBaseURL() throws(CrossmintServiceError) -> URL
Was this page helpful?