> ## 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.

# DefaultCrossmintService

> Swift Structure

**Structure**

```swift theme={null}
struct DefaultCrossmintService
```

## Initializers

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

```swift theme={null}
init(apiKey: ApiKey, appIdentifier: String, httpClient: HTTPClient = .live, requestBuilder: any RequestBuilder = DefaultRequestBuilder(), jsonCoder: any JSONCoder = DefaultJSONCoder())
```

## Instance Properties

### isProductionEnvironment

Inherited from `CrossmintService.isProductionEnvironment`.

```swift theme={null}
var isProductionEnvironment: Bool { get }
```

## Instance Methods

### executeRequest(*:errorType:*:)

Inherited from `CrossmintService.executeRequest(_:errorType:_:)`.

```swift theme={null}
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:_:)`.

```swift theme={null}
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:_:)`.

```swift theme={null}
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()`.

```swift theme={null}
func getApiBaseURL() throws(CrossmintServiceError) -> URL
```
