Skip to main content
Protocol
protocol CrossmintService : Sendable

Instance Properties

isProductionEnvironment

var isProductionEnvironment: Bool { get }

Instance Methods

executeRequest(_:errorType:)

func executeRequest<T, E>(_ endpoint: Endpoint, errorType: E.Type) async throws(E) -> T where T : Decodable, E : ServiceError

executeRequest(_:errorType:)

func executeRequest<E>(_ endpoint: Endpoint, errorType: E.Type) async throws(E) where E : ServiceError

executeRequest(:errorType::)

func executeRequest<T, E>(_ endpoint: Endpoint, errorType: E.Type, _ transform: (NetworkError) -> E?) async throws(E) -> T where T : Decodable, E : ServiceError

executeRequest(:errorType::)

func executeRequest<E>(_ endpoint: Endpoint, errorType: E.Type, _ transform: (NetworkError) -> E?) async throws(E) where E : ServiceError

executeRequestForRawData(_:errorType:)

func executeRequestForRawData<E>(_ endpoint: Endpoint, errorType: E.Type) async throws(E) -> Data where E : ServiceError

executeRequestForRawData(:errorType::)

func executeRequestForRawData<E>(_ endpoint: Endpoint, errorType: E.Type, _ transform: (NetworkError) -> E?) async throws(E) -> Data where E : ServiceError

getApiBaseURL()

func getApiBaseURL() throws(CrossmintServiceError) -> URL