Erc721API
All URIs are relative to https://beta.usemoon.ai
Method
HTTP request
Description
POST /erc721/{name}/approve
POST /erc721/{name}/balance-of
POST /erc721/{name}/get-approved
POST /erc721/{name}/is-approved-for-all
POST /erc721/{name}/owner-of
POST /erc721/{name}/safe-transfer-from
POST /erc721/{name}/set-approval-for-all
POST /erc721/{name}/symbol
POST /erc721/{name}/token-uri
POST /erc721/{name}/transfer
POST /erc721/{name}/transfer-from
approve
open class func approve(authorization: String, name: String, erc721Request: Erc721Request, completion: @escaping (_ data: TransactionAPIResponse?, _ error: Error?) -> Void)
Example
// 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
Return type
TransactionAPIResponse
Authorization
ApiKeyAuth, BearerAuth
Content-Type: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
balanceOf
open class func balanceOf(authorization: String, name: String, erc721Request: Erc721Request, completion: @escaping (_ data: TransactionAPIResponse?, _ error: Error?) -> Void)
Example
// 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
Return type
TransactionAPIResponse
Authorization
ApiKeyAuth, BearerAuth
Content-Type: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getApproved
open class func getApproved(authorization: String, name: String, erc721Request: Erc721Request, completion: @escaping (_ data: TransactionAPIResponse?, _ error: Error?) -> Void)
Example
// 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
Return type
TransactionAPIResponse
Authorization
ApiKeyAuth, BearerAuth
Content-Type: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
isApprovedForAll
open class func isApprovedForAll(authorization: String, name: String, erc721Request: Erc721Request, completion: @escaping (_ data: TransactionAPIResponse?, _ error: Error?) -> Void)
Example
// 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
Return type
TransactionAPIResponse
Authorization
ApiKeyAuth, BearerAuth
Content-Type: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
name
open class func name(authorization: String, name: String, erc721Request: Erc721Request, completion: @escaping (_ data: TransactionAPIResponse?, _ error: Error?) -> Void)
Example
// 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
Return type
TransactionAPIResponse
Authorization
ApiKeyAuth, BearerAuth
Content-Type: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ownerOf
open class func ownerOf(authorization: String, name: String, erc721Request: Erc721Request, completion: @escaping (_ data: TransactionAPIResponse?, _ error: Error?) -> Void)
Example
// 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
Return type
TransactionAPIResponse
Authorization
ApiKeyAuth, BearerAuth
Content-Type: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
safeTransferFrom
open class func safeTransferFrom(authorization: String, name: String, erc721Request: Erc721Request, completion: @escaping (_ data: TransactionAPIResponse?, _ error: Error?) -> Void)
Example
// 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
Return type
TransactionAPIResponse
Authorization
ApiKeyAuth, BearerAuth
Content-Type: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
setApprovalForAll
open class func setApprovalForAll(authorization: String, name: String, erc721Request: Erc721Request, completion: @escaping (_ data: TransactionAPIResponse?, _ error: Error?) -> Void)
Example
// 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
Return type
TransactionAPIResponse
Authorization
ApiKeyAuth, BearerAuth
Content-Type: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
symbol
open class func symbol(authorization: String, name: String, erc721Request: Erc721Request, completion: @escaping (_ data: TransactionAPIResponse?, _ error: Error?) -> Void)
Example
// 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
Return type
TransactionAPIResponse
Authorization
ApiKeyAuth, BearerAuth
Content-Type: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
tokenUri
open class func tokenUri(authorization: String, name: String, erc721Request: Erc721Request, completion: @escaping (_ data: TransactionAPIResponse?, _ error: Error?) -> Void)
Example
// 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
Return type
TransactionAPIResponse
Authorization
ApiKeyAuth, BearerAuth
Content-Type: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
transfer
open class func transfer(authorization: String, name: String, erc721Request: Erc721Request, completion: @escaping (_ data: TransactionAPIResponse?, _ error: Error?) -> Void)
Example
// 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
Return type
TransactionAPIResponse
Authorization
ApiKeyAuth, BearerAuth
Content-Type: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
transferFrom
open class func transferFrom(authorization: String, name: String, erc721Request: Erc721Request, completion: @escaping (_ data: TransactionAPIResponse?, _ error: Error?) -> Void)
Example
// 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
Return type
TransactionAPIResponse
Authorization
ApiKeyAuth, BearerAuth
Content-Type: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]