# Erc721API

## Erc721API

All URIs are relative to *<https://beta.usemoon.ai>*

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

## **approve**

```swift
    open class func approve(authorization: String, name: String, erc721Request: Erc721Request, completion: @escaping (_ data: TransactionAPIResponse?, _ error: Error?) -> Void)
```

#### Example

```swift
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import OpenAPIClient

let authorization = "authorization_example" // String | 
let name = "name_example" // String | 
let erc721Request = Erc721Request(to: "to_example", data: "data_example", input: "input_example", value: "value_example", nonce: "nonce_example", gas: "gas_example", gasPrice: "gasPrice_example", chainId: "chainId_example", encoding: "encoding_example", EOA: false, contractAddress: "contractAddress_example", tokenId: "tokenId_example", tokenIds: "tokenIds_example", approved: false, broadcast: false) // Erc721Request | 

Erc721API.approve(authorization: authorization, name: name, erc721Request: erc721Request) { (response, error) in
    guard error == nil else {
        print(error)
        return
    }

    if (response) {
        dump(response)
    }
}
```

#### Parameters

| Name              | Type              | Description | Notes |
| ----------------- | ----------------- | ----------- | ----- |
| **authorization** | **String**        |             |       |
| **name**          | **String**        |             |       |
| **erc721Request** | **Erc721Request** |             |       |

#### Return type

**TransactionAPIResponse**

#### Authorization

ApiKeyAuth, BearerAuth

#### HTTP request headers

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

[\[Back to top\]](broken://pages/PXaxfNLgfwdpA9ktXlhb) \[Back to API list] \[Back to Model list] \[Back to README]

## **balanceOf**

```swift
    open class func balanceOf(authorization: String, name: String, erc721Request: Erc721Request, completion: @escaping (_ data: TransactionAPIResponse?, _ error: Error?) -> Void)
```

#### Example

```swift
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import OpenAPIClient

let authorization = "authorization_example" // String | 
let name = "name_example" // String | 
let erc721Request = Erc721Request(to: "to_example", data: "data_example", input: "input_example", value: "value_example", nonce: "nonce_example", gas: "gas_example", gasPrice: "gasPrice_example", chainId: "chainId_example", encoding: "encoding_example", EOA: false, contractAddress: "contractAddress_example", tokenId: "tokenId_example", tokenIds: "tokenIds_example", approved: false, broadcast: false) // Erc721Request | 

Erc721API.balanceOf(authorization: authorization, name: name, erc721Request: erc721Request) { (response, error) in
    guard error == nil else {
        print(error)
        return
    }

    if (response) {
        dump(response)
    }
}
```

#### Parameters

| Name              | Type              | Description | Notes |
| ----------------- | ----------------- | ----------- | ----- |
| **authorization** | **String**        |             |       |
| **name**          | **String**        |             |       |
| **erc721Request** | **Erc721Request** |             |       |

#### Return type

**TransactionAPIResponse**

#### Authorization

ApiKeyAuth, BearerAuth

#### HTTP request headers

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

[\[Back to top\]](broken://pages/PXaxfNLgfwdpA9ktXlhb) \[Back to API list] \[Back to Model list] \[Back to README]

## **getApproved**

```swift
    open class func getApproved(authorization: String, name: String, erc721Request: Erc721Request, completion: @escaping (_ data: TransactionAPIResponse?, _ error: Error?) -> Void)
```

#### Example

```swift
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import OpenAPIClient

let authorization = "authorization_example" // String | 
let name = "name_example" // String | 
let erc721Request = Erc721Request(to: "to_example", data: "data_example", input: "input_example", value: "value_example", nonce: "nonce_example", gas: "gas_example", gasPrice: "gasPrice_example", chainId: "chainId_example", encoding: "encoding_example", EOA: false, contractAddress: "contractAddress_example", tokenId: "tokenId_example", tokenIds: "tokenIds_example", approved: false, broadcast: false) // Erc721Request | 

Erc721API.getApproved(authorization: authorization, name: name, erc721Request: erc721Request) { (response, error) in
    guard error == nil else {
        print(error)
        return
    }

    if (response) {
        dump(response)
    }
}
```

#### Parameters

| Name              | Type              | Description | Notes |
| ----------------- | ----------------- | ----------- | ----- |
| **authorization** | **String**        |             |       |
| **name**          | **String**        |             |       |
| **erc721Request** | **Erc721Request** |             |       |

#### Return type

**TransactionAPIResponse**

#### Authorization

ApiKeyAuth, BearerAuth

#### HTTP request headers

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

[\[Back to top\]](broken://pages/PXaxfNLgfwdpA9ktXlhb) \[Back to API list] \[Back to Model list] \[Back to README]

## **isApprovedForAll**

```swift
    open class func isApprovedForAll(authorization: String, name: String, erc721Request: Erc721Request, completion: @escaping (_ data: TransactionAPIResponse?, _ error: Error?) -> Void)
```

#### Example

```swift
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import OpenAPIClient

let authorization = "authorization_example" // String | 
let name = "name_example" // String | 
let erc721Request = Erc721Request(to: "to_example", data: "data_example", input: "input_example", value: "value_example", nonce: "nonce_example", gas: "gas_example", gasPrice: "gasPrice_example", chainId: "chainId_example", encoding: "encoding_example", EOA: false, contractAddress: "contractAddress_example", tokenId: "tokenId_example", tokenIds: "tokenIds_example", approved: false, broadcast: false) // Erc721Request | 

Erc721API.isApprovedForAll(authorization: authorization, name: name, erc721Request: erc721Request) { (response, error) in
    guard error == nil else {
        print(error)
        return
    }

    if (response) {
        dump(response)
    }
}
```

#### Parameters

| Name              | Type              | Description | Notes |
| ----------------- | ----------------- | ----------- | ----- |
| **authorization** | **String**        |             |       |
| **name**          | **String**        |             |       |
| **erc721Request** | **Erc721Request** |             |       |

#### Return type

**TransactionAPIResponse**

#### Authorization

ApiKeyAuth, BearerAuth

#### HTTP request headers

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

[\[Back to top\]](broken://pages/PXaxfNLgfwdpA9ktXlhb) \[Back to API list] \[Back to Model list] \[Back to README]

## **name**

```swift
    open class func name(authorization: String, name: String, erc721Request: Erc721Request, completion: @escaping (_ data: TransactionAPIResponse?, _ error: Error?) -> Void)
```

#### Example

```swift
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import OpenAPIClient

let authorization = "authorization_example" // String | 
let name = "name_example" // String | 
let erc721Request = Erc721Request(to: "to_example", data: "data_example", input: "input_example", value: "value_example", nonce: "nonce_example", gas: "gas_example", gasPrice: "gasPrice_example", chainId: "chainId_example", encoding: "encoding_example", EOA: false, contractAddress: "contractAddress_example", tokenId: "tokenId_example", tokenIds: "tokenIds_example", approved: false, broadcast: false) // Erc721Request | 

Erc721API.name(authorization: authorization, name: name, erc721Request: erc721Request) { (response, error) in
    guard error == nil else {
        print(error)
        return
    }

    if (response) {
        dump(response)
    }
}
```

#### Parameters

| Name              | Type              | Description | Notes |
| ----------------- | ----------------- | ----------- | ----- |
| **authorization** | **String**        |             |       |
| **name**          | **String**        |             |       |
| **erc721Request** | **Erc721Request** |             |       |

#### Return type

**TransactionAPIResponse**

#### Authorization

ApiKeyAuth, BearerAuth

#### HTTP request headers

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

[\[Back to top\]](broken://pages/PXaxfNLgfwdpA9ktXlhb) \[Back to API list] \[Back to Model list] \[Back to README]

## **ownerOf**

```swift
    open class func ownerOf(authorization: String, name: String, erc721Request: Erc721Request, completion: @escaping (_ data: TransactionAPIResponse?, _ error: Error?) -> Void)
```

#### Example

```swift
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import OpenAPIClient

let authorization = "authorization_example" // String | 
let name = "name_example" // String | 
let erc721Request = Erc721Request(to: "to_example", data: "data_example", input: "input_example", value: "value_example", nonce: "nonce_example", gas: "gas_example", gasPrice: "gasPrice_example", chainId: "chainId_example", encoding: "encoding_example", EOA: false, contractAddress: "contractAddress_example", tokenId: "tokenId_example", tokenIds: "tokenIds_example", approved: false, broadcast: false) // Erc721Request | 

Erc721API.ownerOf(authorization: authorization, name: name, erc721Request: erc721Request) { (response, error) in
    guard error == nil else {
        print(error)
        return
    }

    if (response) {
        dump(response)
    }
}
```

#### Parameters

| Name              | Type              | Description | Notes |
| ----------------- | ----------------- | ----------- | ----- |
| **authorization** | **String**        |             |       |
| **name**          | **String**        |             |       |
| **erc721Request** | **Erc721Request** |             |       |

#### Return type

**TransactionAPIResponse**

#### Authorization

ApiKeyAuth, BearerAuth

#### HTTP request headers

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

[\[Back to top\]](broken://pages/PXaxfNLgfwdpA9ktXlhb) \[Back to API list] \[Back to Model list] \[Back to README]

## **safeTransferFrom**

```swift
    open class func safeTransferFrom(authorization: String, name: String, erc721Request: Erc721Request, completion: @escaping (_ data: TransactionAPIResponse?, _ error: Error?) -> Void)
```

#### Example

```swift
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import OpenAPIClient

let authorization = "authorization_example" // String | 
let name = "name_example" // String | 
let erc721Request = Erc721Request(to: "to_example", data: "data_example", input: "input_example", value: "value_example", nonce: "nonce_example", gas: "gas_example", gasPrice: "gasPrice_example", chainId: "chainId_example", encoding: "encoding_example", EOA: false, contractAddress: "contractAddress_example", tokenId: "tokenId_example", tokenIds: "tokenIds_example", approved: false, broadcast: false) // Erc721Request | 

Erc721API.safeTransferFrom(authorization: authorization, name: name, erc721Request: erc721Request) { (response, error) in
    guard error == nil else {
        print(error)
        return
    }

    if (response) {
        dump(response)
    }
}
```

#### Parameters

| Name              | Type              | Description | Notes |
| ----------------- | ----------------- | ----------- | ----- |
| **authorization** | **String**        |             |       |
| **name**          | **String**        |             |       |
| **erc721Request** | **Erc721Request** |             |       |

#### Return type

**TransactionAPIResponse**

#### Authorization

ApiKeyAuth, BearerAuth

#### HTTP request headers

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

[\[Back to top\]](broken://pages/PXaxfNLgfwdpA9ktXlhb) \[Back to API list] \[Back to Model list] \[Back to README]

## **setApprovalForAll**

```swift
    open class func setApprovalForAll(authorization: String, name: String, erc721Request: Erc721Request, completion: @escaping (_ data: TransactionAPIResponse?, _ error: Error?) -> Void)
```

#### Example

```swift
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import OpenAPIClient

let authorization = "authorization_example" // String | 
let name = "name_example" // String | 
let erc721Request = Erc721Request(to: "to_example", data: "data_example", input: "input_example", value: "value_example", nonce: "nonce_example", gas: "gas_example", gasPrice: "gasPrice_example", chainId: "chainId_example", encoding: "encoding_example", EOA: false, contractAddress: "contractAddress_example", tokenId: "tokenId_example", tokenIds: "tokenIds_example", approved: false, broadcast: false) // Erc721Request | 

Erc721API.setApprovalForAll(authorization: authorization, name: name, erc721Request: erc721Request) { (response, error) in
    guard error == nil else {
        print(error)
        return
    }

    if (response) {
        dump(response)
    }
}
```

#### Parameters

| Name              | Type              | Description | Notes |
| ----------------- | ----------------- | ----------- | ----- |
| **authorization** | **String**        |             |       |
| **name**          | **String**        |             |       |
| **erc721Request** | **Erc721Request** |             |       |

#### Return type

**TransactionAPIResponse**

#### Authorization

ApiKeyAuth, BearerAuth

#### HTTP request headers

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

[\[Back to top\]](broken://pages/PXaxfNLgfwdpA9ktXlhb) \[Back to API list] \[Back to Model list] \[Back to README]

## **symbol**

```swift
    open class func symbol(authorization: String, name: String, erc721Request: Erc721Request, completion: @escaping (_ data: TransactionAPIResponse?, _ error: Error?) -> Void)
```

#### Example

```swift
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import OpenAPIClient

let authorization = "authorization_example" // String | 
let name = "name_example" // String | 
let erc721Request = Erc721Request(to: "to_example", data: "data_example", input: "input_example", value: "value_example", nonce: "nonce_example", gas: "gas_example", gasPrice: "gasPrice_example", chainId: "chainId_example", encoding: "encoding_example", EOA: false, contractAddress: "contractAddress_example", tokenId: "tokenId_example", tokenIds: "tokenIds_example", approved: false, broadcast: false) // Erc721Request | 

Erc721API.symbol(authorization: authorization, name: name, erc721Request: erc721Request) { (response, error) in
    guard error == nil else {
        print(error)
        return
    }

    if (response) {
        dump(response)
    }
}
```

#### Parameters

| Name              | Type              | Description | Notes |
| ----------------- | ----------------- | ----------- | ----- |
| **authorization** | **String**        |             |       |
| **name**          | **String**        |             |       |
| **erc721Request** | **Erc721Request** |             |       |

#### Return type

**TransactionAPIResponse**

#### Authorization

ApiKeyAuth, BearerAuth

#### HTTP request headers

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

[\[Back to top\]](broken://pages/PXaxfNLgfwdpA9ktXlhb) \[Back to API list] \[Back to Model list] \[Back to README]

## **tokenUri**

```swift
    open class func tokenUri(authorization: String, name: String, erc721Request: Erc721Request, completion: @escaping (_ data: TransactionAPIResponse?, _ error: Error?) -> Void)
```

#### Example

```swift
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import OpenAPIClient

let authorization = "authorization_example" // String | 
let name = "name_example" // String | 
let erc721Request = Erc721Request(to: "to_example", data: "data_example", input: "input_example", value: "value_example", nonce: "nonce_example", gas: "gas_example", gasPrice: "gasPrice_example", chainId: "chainId_example", encoding: "encoding_example", EOA: false, contractAddress: "contractAddress_example", tokenId: "tokenId_example", tokenIds: "tokenIds_example", approved: false, broadcast: false) // Erc721Request | 

Erc721API.tokenUri(authorization: authorization, name: name, erc721Request: erc721Request) { (response, error) in
    guard error == nil else {
        print(error)
        return
    }

    if (response) {
        dump(response)
    }
}
```

#### Parameters

| Name              | Type              | Description | Notes |
| ----------------- | ----------------- | ----------- | ----- |
| **authorization** | **String**        |             |       |
| **name**          | **String**        |             |       |
| **erc721Request** | **Erc721Request** |             |       |

#### Return type

**TransactionAPIResponse**

#### Authorization

ApiKeyAuth, BearerAuth

#### HTTP request headers

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

[\[Back to top\]](broken://pages/PXaxfNLgfwdpA9ktXlhb) \[Back to API list] \[Back to Model list] \[Back to README]

## **transfer**

```swift
    open class func transfer(authorization: String, name: String, erc721Request: Erc721Request, completion: @escaping (_ data: TransactionAPIResponse?, _ error: Error?) -> Void)
```

#### Example

```swift
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import OpenAPIClient

let authorization = "authorization_example" // String | 
let name = "name_example" // String | 
let erc721Request = Erc721Request(to: "to_example", data: "data_example", input: "input_example", value: "value_example", nonce: "nonce_example", gas: "gas_example", gasPrice: "gasPrice_example", chainId: "chainId_example", encoding: "encoding_example", EOA: false, contractAddress: "contractAddress_example", tokenId: "tokenId_example", tokenIds: "tokenIds_example", approved: false, broadcast: false) // Erc721Request | 

Erc721API.transfer(authorization: authorization, name: name, erc721Request: erc721Request) { (response, error) in
    guard error == nil else {
        print(error)
        return
    }

    if (response) {
        dump(response)
    }
}
```

#### Parameters

| Name              | Type              | Description | Notes |
| ----------------- | ----------------- | ----------- | ----- |
| **authorization** | **String**        |             |       |
| **name**          | **String**        |             |       |
| **erc721Request** | **Erc721Request** |             |       |

#### Return type

**TransactionAPIResponse**

#### Authorization

ApiKeyAuth, BearerAuth

#### HTTP request headers

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

[\[Back to top\]](broken://pages/PXaxfNLgfwdpA9ktXlhb) \[Back to API list] \[Back to Model list] \[Back to README]

## **transferFrom**

```swift
    open class func transferFrom(authorization: String, name: String, erc721Request: Erc721Request, completion: @escaping (_ data: TransactionAPIResponse?, _ error: Error?) -> Void)
```

#### Example

```swift
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import OpenAPIClient

let authorization = "authorization_example" // String | 
let name = "name_example" // String | 
let erc721Request = Erc721Request(to: "to_example", data: "data_example", input: "input_example", value: "value_example", nonce: "nonce_example", gas: "gas_example", gasPrice: "gasPrice_example", chainId: "chainId_example", encoding: "encoding_example", EOA: false, contractAddress: "contractAddress_example", tokenId: "tokenId_example", tokenIds: "tokenIds_example", approved: false, broadcast: false) // Erc721Request | 

Erc721API.transferFrom(authorization: authorization, name: name, erc721Request: erc721Request) { (response, error) in
    guard error == nil else {
        print(error)
        return
    }

    if (response) {
        dump(response)
    }
}
```

#### Parameters

| Name              | Type              | Description | Notes |
| ----------------- | ----------------- | ----------- | ----- |
| **authorization** | **String**        |             |       |
| **name**          | **String**        |             |       |
| **erc721Request** | **Erc721Request** |             |       |

#### Return type

**TransactionAPIResponse**

#### Authorization

ApiKeyAuth, BearerAuth

#### HTTP request headers

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

[\[Back to top\]](broken://pages/PXaxfNLgfwdpA9ktXlhb) \[Back to API list] \[Back to Model list] \[Back to README]


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.usemoon.ai/sdks/swift/erc721api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
