> For the complete documentation index, see [llms.txt](https://docs.usemoon.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.usemoon.ai/sdks/kotlin/erc721api.md).

# Erc721Api

## Erc721Api

All URIs are relative to *<https://moon-vault-api-git-ew-supabase-migration-moonup.vercel.app>*

| Method                                      | HTTP request                                 | Description |
| ------------------------------------------- | -------------------------------------------- | ----------- |
| [**approve**](#approve)                     | **POST** /erc721/{name}/approve              |             |
| [**balanceOf**](#balanceOf)                 | **POST** /erc721/{name}/balance-of           |             |
| [**getApproved**](#getApproved)             | **POST** /erc721/{name}/get-approved         |             |
| [**isApprovedForAll**](#isApprovedForAll)   | **POST** /erc721/{name}/is-approved-for-all  |             |
| [**name**](#name)                           | **POST** /erc721/{name}/name                 |             |
| [**ownerOf**](#ownerOf)                     | **POST** /erc721/{name}/owner-of             |             |
| [**safeTransferFrom**](#safeTransferFrom)   | **POST** /erc721/{name}/safe-transfer-from   |             |
| [**setApprovalForAll**](#setApprovalForAll) | **POST** /erc721/{name}/set-approval-for-all |             |
| [**symbol**](#symbol)                       | **POST** /erc721/{name}/symbol               |             |
| [**tokenUri**](#tokenUri)                   | **POST** /erc721/{name}/token-uri            |             |
| [**transfer**](#transfer)                   | **POST** /erc721/{name}/transfer             |             |
| [**transferFrom**](#transferFrom)           | **POST** /erc721/{name}/transfer-from        |             |

## **approve**

> TransactionAPIResponse approve(authorization, name, erc721Request)

#### Example

```kotlin
// Import classes:
//import org.usemoonai.moonsdk.infrastructure.*
//import org.usemoonai.moonsdk.models.*

val apiInstance = Erc721Api()
val authorization : kotlin.String = authorization_example // kotlin.String | 
val name : kotlin.String = name_example // kotlin.String | 
val erc721Request : Erc721Request =  // Erc721Request | 
try {
    val result : TransactionAPIResponse = apiInstance.approve(authorization, name, erc721Request)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling Erc721Api#approve")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling Erc721Api#approve")
    e.printStackTrace()
}
```

#### Parameters

| Name              | Type                                               | Description | Notes |
| ----------------- | -------------------------------------------------- | ----------- | ----- |
| **authorization** | **kotlin.String**                                  |             |       |
| **name**          | **kotlin.String**                                  |             |       |
| **erc721Request** | [**Erc721Request**](/sdks/kotlin/erc721request.md) |             |       |

#### Return type

[**TransactionAPIResponse**](/sdks/kotlin/transactionapiresponse.md)

#### Authorization

Configure ApiKeyAuth: ApiClient.apiKey\["x-api-key"] = "" ApiClient.apiKeyPrefix\["x-api-key"] = "" Configure BearerAuth: ApiClient.apiKey\["Authorization"] = "" ApiClient.apiKeyPrefix\["Authorization"] = ""

#### HTTP request headers

* **Content-Type**: application/json
* **Accept**: application/json

## **balanceOf**

> TransactionAPIResponse balanceOf(authorization, name, erc721Request)

#### Example

```kotlin
// Import classes:
//import org.usemoonai.moonsdk.infrastructure.*
//import org.usemoonai.moonsdk.models.*

val apiInstance = Erc721Api()
val authorization : kotlin.String = authorization_example // kotlin.String | 
val name : kotlin.String = name_example // kotlin.String | 
val erc721Request : Erc721Request =  // Erc721Request | 
try {
    val result : TransactionAPIResponse = apiInstance.balanceOf(authorization, name, erc721Request)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling Erc721Api#balanceOf")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling Erc721Api#balanceOf")
    e.printStackTrace()
}
```

#### Parameters

| Name              | Type                                               | Description | Notes |
| ----------------- | -------------------------------------------------- | ----------- | ----- |
| **authorization** | **kotlin.String**                                  |             |       |
| **name**          | **kotlin.String**                                  |             |       |
| **erc721Request** | [**Erc721Request**](/sdks/kotlin/erc721request.md) |             |       |

#### Return type

[**TransactionAPIResponse**](/sdks/kotlin/transactionapiresponse.md)

#### Authorization

Configure ApiKeyAuth: ApiClient.apiKey\["x-api-key"] = "" ApiClient.apiKeyPrefix\["x-api-key"] = "" Configure BearerAuth: ApiClient.apiKey\["Authorization"] = "" ApiClient.apiKeyPrefix\["Authorization"] = ""

#### HTTP request headers

* **Content-Type**: application/json
* **Accept**: application/json

## **getApproved**

> TransactionAPIResponse getApproved(authorization, name, erc721Request)

#### Example

```kotlin
// Import classes:
//import org.usemoonai.moonsdk.infrastructure.*
//import org.usemoonai.moonsdk.models.*

val apiInstance = Erc721Api()
val authorization : kotlin.String = authorization_example // kotlin.String | 
val name : kotlin.String = name_example // kotlin.String | 
val erc721Request : Erc721Request =  // Erc721Request | 
try {
    val result : TransactionAPIResponse = apiInstance.getApproved(authorization, name, erc721Request)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling Erc721Api#getApproved")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling Erc721Api#getApproved")
    e.printStackTrace()
}
```

#### Parameters

| Name              | Type                                               | Description | Notes |
| ----------------- | -------------------------------------------------- | ----------- | ----- |
| **authorization** | **kotlin.String**                                  |             |       |
| **name**          | **kotlin.String**                                  |             |       |
| **erc721Request** | [**Erc721Request**](/sdks/kotlin/erc721request.md) |             |       |

#### Return type

[**TransactionAPIResponse**](/sdks/kotlin/transactionapiresponse.md)

#### Authorization

Configure ApiKeyAuth: ApiClient.apiKey\["x-api-key"] = "" ApiClient.apiKeyPrefix\["x-api-key"] = "" Configure BearerAuth: ApiClient.apiKey\["Authorization"] = "" ApiClient.apiKeyPrefix\["Authorization"] = ""

#### HTTP request headers

* **Content-Type**: application/json
* **Accept**: application/json

## **isApprovedForAll**

> TransactionAPIResponse isApprovedForAll(authorization, name, erc721Request)

#### Example

```kotlin
// Import classes:
//import org.usemoonai.moonsdk.infrastructure.*
//import org.usemoonai.moonsdk.models.*

val apiInstance = Erc721Api()
val authorization : kotlin.String = authorization_example // kotlin.String | 
val name : kotlin.String = name_example // kotlin.String | 
val erc721Request : Erc721Request =  // Erc721Request | 
try {
    val result : TransactionAPIResponse = apiInstance.isApprovedForAll(authorization, name, erc721Request)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling Erc721Api#isApprovedForAll")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling Erc721Api#isApprovedForAll")
    e.printStackTrace()
}
```

#### Parameters

| Name              | Type                                               | Description | Notes |
| ----------------- | -------------------------------------------------- | ----------- | ----- |
| **authorization** | **kotlin.String**                                  |             |       |
| **name**          | **kotlin.String**                                  |             |       |
| **erc721Request** | [**Erc721Request**](/sdks/kotlin/erc721request.md) |             |       |

#### Return type

[**TransactionAPIResponse**](/sdks/kotlin/transactionapiresponse.md)

#### Authorization

Configure ApiKeyAuth: ApiClient.apiKey\["x-api-key"] = "" ApiClient.apiKeyPrefix\["x-api-key"] = "" Configure BearerAuth: ApiClient.apiKey\["Authorization"] = "" ApiClient.apiKeyPrefix\["Authorization"] = ""

#### HTTP request headers

* **Content-Type**: application/json
* **Accept**: application/json

## **name**

> TransactionAPIResponse name(authorization, name, erc721Request)

#### Example

```kotlin
// Import classes:
//import org.usemoonai.moonsdk.infrastructure.*
//import org.usemoonai.moonsdk.models.*

val apiInstance = Erc721Api()
val authorization : kotlin.String = authorization_example // kotlin.String | 
val name : kotlin.String = name_example // kotlin.String | 
val erc721Request : Erc721Request =  // Erc721Request | 
try {
    val result : TransactionAPIResponse = apiInstance.name(authorization, name, erc721Request)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling Erc721Api#name")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling Erc721Api#name")
    e.printStackTrace()
}
```

#### Parameters

| Name              | Type                                               | Description | Notes |
| ----------------- | -------------------------------------------------- | ----------- | ----- |
| **authorization** | **kotlin.String**                                  |             |       |
| **name**          | **kotlin.String**                                  |             |       |
| **erc721Request** | [**Erc721Request**](/sdks/kotlin/erc721request.md) |             |       |

#### Return type

[**TransactionAPIResponse**](/sdks/kotlin/transactionapiresponse.md)

#### Authorization

Configure ApiKeyAuth: ApiClient.apiKey\["x-api-key"] = "" ApiClient.apiKeyPrefix\["x-api-key"] = "" Configure BearerAuth: ApiClient.apiKey\["Authorization"] = "" ApiClient.apiKeyPrefix\["Authorization"] = ""

#### HTTP request headers

* **Content-Type**: application/json
* **Accept**: application/json

## **ownerOf**

> TransactionAPIResponse ownerOf(authorization, name, erc721Request)

#### Example

```kotlin
// Import classes:
//import org.usemoonai.moonsdk.infrastructure.*
//import org.usemoonai.moonsdk.models.*

val apiInstance = Erc721Api()
val authorization : kotlin.String = authorization_example // kotlin.String | 
val name : kotlin.String = name_example // kotlin.String | 
val erc721Request : Erc721Request =  // Erc721Request | 
try {
    val result : TransactionAPIResponse = apiInstance.ownerOf(authorization, name, erc721Request)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling Erc721Api#ownerOf")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling Erc721Api#ownerOf")
    e.printStackTrace()
}
```

#### Parameters

| Name              | Type                                               | Description | Notes |
| ----------------- | -------------------------------------------------- | ----------- | ----- |
| **authorization** | **kotlin.String**                                  |             |       |
| **name**          | **kotlin.String**                                  |             |       |
| **erc721Request** | [**Erc721Request**](/sdks/kotlin/erc721request.md) |             |       |

#### Return type

[**TransactionAPIResponse**](/sdks/kotlin/transactionapiresponse.md)

#### Authorization

Configure ApiKeyAuth: ApiClient.apiKey\["x-api-key"] = "" ApiClient.apiKeyPrefix\["x-api-key"] = "" Configure BearerAuth: ApiClient.apiKey\["Authorization"] = "" ApiClient.apiKeyPrefix\["Authorization"] = ""

#### HTTP request headers

* **Content-Type**: application/json
* **Accept**: application/json

## **safeTransferFrom**

> TransactionAPIResponse safeTransferFrom(authorization, name, erc721Request)

#### Example

```kotlin
// Import classes:
//import org.usemoonai.moonsdk.infrastructure.*
//import org.usemoonai.moonsdk.models.*

val apiInstance = Erc721Api()
val authorization : kotlin.String = authorization_example // kotlin.String | 
val name : kotlin.String = name_example // kotlin.String | 
val erc721Request : Erc721Request =  // Erc721Request | 
try {
    val result : TransactionAPIResponse = apiInstance.safeTransferFrom(authorization, name, erc721Request)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling Erc721Api#safeTransferFrom")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling Erc721Api#safeTransferFrom")
    e.printStackTrace()
}
```

#### Parameters

| Name              | Type                                               | Description | Notes |
| ----------------- | -------------------------------------------------- | ----------- | ----- |
| **authorization** | **kotlin.String**                                  |             |       |
| **name**          | **kotlin.String**                                  |             |       |
| **erc721Request** | [**Erc721Request**](/sdks/kotlin/erc721request.md) |             |       |

#### Return type

[**TransactionAPIResponse**](/sdks/kotlin/transactionapiresponse.md)

#### Authorization

Configure ApiKeyAuth: ApiClient.apiKey\["x-api-key"] = "" ApiClient.apiKeyPrefix\["x-api-key"] = "" Configure BearerAuth: ApiClient.apiKey\["Authorization"] = "" ApiClient.apiKeyPrefix\["Authorization"] = ""

#### HTTP request headers

* **Content-Type**: application/json
* **Accept**: application/json

## **setApprovalForAll**

> TransactionAPIResponse setApprovalForAll(authorization, name, erc721Request)

#### Example

```kotlin
// Import classes:
//import org.usemoonai.moonsdk.infrastructure.*
//import org.usemoonai.moonsdk.models.*

val apiInstance = Erc721Api()
val authorization : kotlin.String = authorization_example // kotlin.String | 
val name : kotlin.String = name_example // kotlin.String | 
val erc721Request : Erc721Request =  // Erc721Request | 
try {
    val result : TransactionAPIResponse = apiInstance.setApprovalForAll(authorization, name, erc721Request)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling Erc721Api#setApprovalForAll")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling Erc721Api#setApprovalForAll")
    e.printStackTrace()
}
```

#### Parameters

| Name              | Type                                               | Description | Notes |
| ----------------- | -------------------------------------------------- | ----------- | ----- |
| **authorization** | **kotlin.String**                                  |             |       |
| **name**          | **kotlin.String**                                  |             |       |
| **erc721Request** | [**Erc721Request**](/sdks/kotlin/erc721request.md) |             |       |

#### Return type

[**TransactionAPIResponse**](/sdks/kotlin/transactionapiresponse.md)

#### Authorization

Configure ApiKeyAuth: ApiClient.apiKey\["x-api-key"] = "" ApiClient.apiKeyPrefix\["x-api-key"] = "" Configure BearerAuth: ApiClient.apiKey\["Authorization"] = "" ApiClient.apiKeyPrefix\["Authorization"] = ""

#### HTTP request headers

* **Content-Type**: application/json
* **Accept**: application/json

## **symbol**

> TransactionAPIResponse symbol(authorization, name, erc721Request)

#### Example

```kotlin
// Import classes:
//import org.usemoonai.moonsdk.infrastructure.*
//import org.usemoonai.moonsdk.models.*

val apiInstance = Erc721Api()
val authorization : kotlin.String = authorization_example // kotlin.String | 
val name : kotlin.String = name_example // kotlin.String | 
val erc721Request : Erc721Request =  // Erc721Request | 
try {
    val result : TransactionAPIResponse = apiInstance.symbol(authorization, name, erc721Request)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling Erc721Api#symbol")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling Erc721Api#symbol")
    e.printStackTrace()
}
```

#### Parameters

| Name              | Type                                               | Description | Notes |
| ----------------- | -------------------------------------------------- | ----------- | ----- |
| **authorization** | **kotlin.String**                                  |             |       |
| **name**          | **kotlin.String**                                  |             |       |
| **erc721Request** | [**Erc721Request**](/sdks/kotlin/erc721request.md) |             |       |

#### Return type

[**TransactionAPIResponse**](/sdks/kotlin/transactionapiresponse.md)

#### Authorization

Configure ApiKeyAuth: ApiClient.apiKey\["x-api-key"] = "" ApiClient.apiKeyPrefix\["x-api-key"] = "" Configure BearerAuth: ApiClient.apiKey\["Authorization"] = "" ApiClient.apiKeyPrefix\["Authorization"] = ""

#### HTTP request headers

* **Content-Type**: application/json
* **Accept**: application/json

## **tokenUri**

> TransactionAPIResponse tokenUri(authorization, name, erc721Request)

#### Example

```kotlin
// Import classes:
//import org.usemoonai.moonsdk.infrastructure.*
//import org.usemoonai.moonsdk.models.*

val apiInstance = Erc721Api()
val authorization : kotlin.String = authorization_example // kotlin.String | 
val name : kotlin.String = name_example // kotlin.String | 
val erc721Request : Erc721Request =  // Erc721Request | 
try {
    val result : TransactionAPIResponse = apiInstance.tokenUri(authorization, name, erc721Request)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling Erc721Api#tokenUri")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling Erc721Api#tokenUri")
    e.printStackTrace()
}
```

#### Parameters

| Name              | Type                                               | Description | Notes |
| ----------------- | -------------------------------------------------- | ----------- | ----- |
| **authorization** | **kotlin.String**                                  |             |       |
| **name**          | **kotlin.String**                                  |             |       |
| **erc721Request** | [**Erc721Request**](/sdks/kotlin/erc721request.md) |             |       |

#### Return type

[**TransactionAPIResponse**](/sdks/kotlin/transactionapiresponse.md)

#### Authorization

Configure ApiKeyAuth: ApiClient.apiKey\["x-api-key"] = "" ApiClient.apiKeyPrefix\["x-api-key"] = "" Configure BearerAuth: ApiClient.apiKey\["Authorization"] = "" ApiClient.apiKeyPrefix\["Authorization"] = ""

#### HTTP request headers

* **Content-Type**: application/json
* **Accept**: application/json

## **transfer**

> TransactionAPIResponse transfer(authorization, name, erc721Request)

#### Example

```kotlin
// Import classes:
//import org.usemoonai.moonsdk.infrastructure.*
//import org.usemoonai.moonsdk.models.*

val apiInstance = Erc721Api()
val authorization : kotlin.String = authorization_example // kotlin.String | 
val name : kotlin.String = name_example // kotlin.String | 
val erc721Request : Erc721Request =  // Erc721Request | 
try {
    val result : TransactionAPIResponse = apiInstance.transfer(authorization, name, erc721Request)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling Erc721Api#transfer")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling Erc721Api#transfer")
    e.printStackTrace()
}
```

#### Parameters

| Name              | Type                                               | Description | Notes |
| ----------------- | -------------------------------------------------- | ----------- | ----- |
| **authorization** | **kotlin.String**                                  |             |       |
| **name**          | **kotlin.String**                                  |             |       |
| **erc721Request** | [**Erc721Request**](/sdks/kotlin/erc721request.md) |             |       |

#### Return type

[**TransactionAPIResponse**](/sdks/kotlin/transactionapiresponse.md)

#### Authorization

Configure ApiKeyAuth: ApiClient.apiKey\["x-api-key"] = "" ApiClient.apiKeyPrefix\["x-api-key"] = "" Configure BearerAuth: ApiClient.apiKey\["Authorization"] = "" ApiClient.apiKeyPrefix\["Authorization"] = ""

#### HTTP request headers

* **Content-Type**: application/json
* **Accept**: application/json

## **transferFrom**

> TransactionAPIResponse transferFrom(authorization, name, erc721Request)

#### Example

```kotlin
// Import classes:
//import org.usemoonai.moonsdk.infrastructure.*
//import org.usemoonai.moonsdk.models.*

val apiInstance = Erc721Api()
val authorization : kotlin.String = authorization_example // kotlin.String | 
val name : kotlin.String = name_example // kotlin.String | 
val erc721Request : Erc721Request =  // Erc721Request | 
try {
    val result : TransactionAPIResponse = apiInstance.transferFrom(authorization, name, erc721Request)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling Erc721Api#transferFrom")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling Erc721Api#transferFrom")
    e.printStackTrace()
}
```

#### Parameters

| Name              | Type                                               | Description | Notes |
| ----------------- | -------------------------------------------------- | ----------- | ----- |
| **authorization** | **kotlin.String**                                  |             |       |
| **name**          | **kotlin.String**                                  |             |       |
| **erc721Request** | [**Erc721Request**](/sdks/kotlin/erc721request.md) |             |       |

#### Return type

[**TransactionAPIResponse**](/sdks/kotlin/transactionapiresponse.md)

#### Authorization

Configure ApiKeyAuth: ApiClient.apiKey\["x-api-key"] = "" ApiClient.apiKeyPrefix\["x-api-key"] = "" Configure BearerAuth: ApiClient.apiKey\["Authorization"] = "" ApiClient.apiKeyPrefix\["Authorization"] = ""

#### HTTP request headers

* **Content-Type**: application/json
* **Accept**: application/json
