import moonsdkfrom moonsdk.models.erc721_request import Erc721Requestfrom moonsdk.models.transaction_api_response import TransactionAPIResponsefrom moonsdk.rest import ApiExceptionfrom pprint import pprint# Defining the host is optional and defaults to https://beta.usemoon.ai# See configuration.py for a list of all supported configuration parameters.configuration = moonsdk.Configuration( host ="https://beta.usemoon.ai")# The client must configure the authentication and authorization parameters# in accordance with the API server security policy.# Examples for each auth method are provided below, use the example that# satisfies your auth use case.# Configure API key authorization: ApiKeyAuthconfiguration.api_key['ApiKeyAuth']= os.environ["API_KEY"]# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'# Configure API key authorization: BearerAuthconfiguration.api_key['BearerAuth']= os.environ["API_KEY"]# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['BearerAuth'] = 'Bearer'# Enter a context with an instance of the API clientasyncwith moonsdk.ApiClient(configuration)as api_client:# Create an instance of the API class api_instance = moonsdk.Erc721Api(api_client) authorization ='authorization_example'# str | name ='name_example'# str | erc721_request = moonsdk.Erc721Request()# Erc721Request | try: api_response =await api_instance.approve(authorization, name, erc721_request)print("The response of Erc721Api->approve:\n")pprint(api_response)exceptExceptionas e:print("Exception when calling Erc721Api->approve: %s\n"% e)
import moonsdkfrom moonsdk.models.erc721_request import Erc721Requestfrom moonsdk.models.transaction_api_response import TransactionAPIResponsefrom moonsdk.rest import ApiExceptionfrom pprint import pprint# Defining the host is optional and defaults to https://beta.usemoon.ai# See configuration.py for a list of all supported configuration parameters.configuration = moonsdk.Configuration( host ="https://beta.usemoon.ai")# The client must configure the authentication and authorization parameters# in accordance with the API server security policy.# Examples for each auth method are provided below, use the example that# satisfies your auth use case.# Configure API key authorization: ApiKeyAuthconfiguration.api_key['ApiKeyAuth']= os.environ["API_KEY"]# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'# Configure API key authorization: BearerAuthconfiguration.api_key['BearerAuth']= os.environ["API_KEY"]# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['BearerAuth'] = 'Bearer'# Enter a context with an instance of the API clientasyncwith moonsdk.ApiClient(configuration)as api_client:# Create an instance of the API class api_instance = moonsdk.Erc721Api(api_client) authorization ='authorization_example'# str | name ='name_example'# str | erc721_request = moonsdk.Erc721Request()# Erc721Request | try: api_response =await api_instance.balance_of(authorization, name, erc721_request)print("The response of Erc721Api->balance_of:\n")pprint(api_response)exceptExceptionas e:print("Exception when calling Erc721Api->balance_of: %s\n"% e)
import moonsdkfrom moonsdk.models.erc721_request import Erc721Requestfrom moonsdk.models.transaction_api_response import TransactionAPIResponsefrom moonsdk.rest import ApiExceptionfrom pprint import pprint# Defining the host is optional and defaults to https://beta.usemoon.ai# See configuration.py for a list of all supported configuration parameters.configuration = moonsdk.Configuration( host ="https://beta.usemoon.ai")# The client must configure the authentication and authorization parameters# in accordance with the API server security policy.# Examples for each auth method are provided below, use the example that# satisfies your auth use case.# Configure API key authorization: ApiKeyAuthconfiguration.api_key['ApiKeyAuth']= os.environ["API_KEY"]# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'# Configure API key authorization: BearerAuthconfiguration.api_key['BearerAuth']= os.environ["API_KEY"]# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['BearerAuth'] = 'Bearer'# Enter a context with an instance of the API clientasyncwith moonsdk.ApiClient(configuration)as api_client:# Create an instance of the API class api_instance = moonsdk.Erc721Api(api_client) authorization ='authorization_example'# str | name ='name_example'# str | erc721_request = moonsdk.Erc721Request()# Erc721Request | try: api_response =await api_instance.get_approved(authorization, name, erc721_request)print("The response of Erc721Api->get_approved:\n")pprint(api_response)exceptExceptionas e:print("Exception when calling Erc721Api->get_approved: %s\n"% e)
import moonsdkfrom moonsdk.models.erc721_request import Erc721Requestfrom moonsdk.models.transaction_api_response import TransactionAPIResponsefrom moonsdk.rest import ApiExceptionfrom pprint import pprint# Defining the host is optional and defaults to https://beta.usemoon.ai# See configuration.py for a list of all supported configuration parameters.configuration = moonsdk.Configuration( host ="https://beta.usemoon.ai")# The client must configure the authentication and authorization parameters# in accordance with the API server security policy.# Examples for each auth method are provided below, use the example that# satisfies your auth use case.# Configure API key authorization: ApiKeyAuthconfiguration.api_key['ApiKeyAuth']= os.environ["API_KEY"]# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'# Configure API key authorization: BearerAuthconfiguration.api_key['BearerAuth']= os.environ["API_KEY"]# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['BearerAuth'] = 'Bearer'# Enter a context with an instance of the API clientasyncwith moonsdk.ApiClient(configuration)as api_client:# Create an instance of the API class api_instance = moonsdk.Erc721Api(api_client) authorization ='authorization_example'# str | name ='name_example'# str | erc721_request = moonsdk.Erc721Request()# Erc721Request | try: api_response =await api_instance.is_approved_for_all(authorization, name, erc721_request)print("The response of Erc721Api->is_approved_for_all:\n")pprint(api_response)exceptExceptionas e:print("Exception when calling Erc721Api->is_approved_for_all: %s\n"% e)
import moonsdkfrom moonsdk.models.erc721_request import Erc721Requestfrom moonsdk.models.transaction_api_response import TransactionAPIResponsefrom moonsdk.rest import ApiExceptionfrom pprint import pprint# Defining the host is optional and defaults to https://beta.usemoon.ai# See configuration.py for a list of all supported configuration parameters.configuration = moonsdk.Configuration( host ="https://beta.usemoon.ai")# The client must configure the authentication and authorization parameters# in accordance with the API server security policy.# Examples for each auth method are provided below, use the example that# satisfies your auth use case.# Configure API key authorization: ApiKeyAuthconfiguration.api_key['ApiKeyAuth']= os.environ["API_KEY"]# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'# Configure API key authorization: BearerAuthconfiguration.api_key['BearerAuth']= os.environ["API_KEY"]# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['BearerAuth'] = 'Bearer'# Enter a context with an instance of the API clientasyncwith moonsdk.ApiClient(configuration)as api_client:# Create an instance of the API class api_instance = moonsdk.Erc721Api(api_client) authorization ='authorization_example'# str | name ='name_example'# str | erc721_request = moonsdk.Erc721Request()# Erc721Request | try: api_response =await api_instance.name(authorization, name, erc721_request)print("The response of Erc721Api->name:\n")pprint(api_response)exceptExceptionas e:print("Exception when calling Erc721Api->name: %s\n"% e)
import moonsdkfrom moonsdk.models.erc721_request import Erc721Requestfrom moonsdk.models.transaction_api_response import TransactionAPIResponsefrom moonsdk.rest import ApiExceptionfrom pprint import pprint# Defining the host is optional and defaults to https://beta.usemoon.ai# See configuration.py for a list of all supported configuration parameters.configuration = moonsdk.Configuration( host ="https://beta.usemoon.ai")# The client must configure the authentication and authorization parameters# in accordance with the API server security policy.# Examples for each auth method are provided below, use the example that# satisfies your auth use case.# Configure API key authorization: ApiKeyAuthconfiguration.api_key['ApiKeyAuth']= os.environ["API_KEY"]# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'# Configure API key authorization: BearerAuthconfiguration.api_key['BearerAuth']= os.environ["API_KEY"]# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['BearerAuth'] = 'Bearer'# Enter a context with an instance of the API clientasyncwith moonsdk.ApiClient(configuration)as api_client:# Create an instance of the API class api_instance = moonsdk.Erc721Api(api_client) authorization ='authorization_example'# str | name ='name_example'# str | erc721_request = moonsdk.Erc721Request()# Erc721Request | try: api_response =await api_instance.owner_of(authorization, name, erc721_request)print("The response of Erc721Api->owner_of:\n")pprint(api_response)exceptExceptionas e:print("Exception when calling Erc721Api->owner_of: %s\n"% e)
import moonsdkfrom moonsdk.models.erc721_request import Erc721Requestfrom moonsdk.models.transaction_api_response import TransactionAPIResponsefrom moonsdk.rest import ApiExceptionfrom pprint import pprint# Defining the host is optional and defaults to https://beta.usemoon.ai# See configuration.py for a list of all supported configuration parameters.configuration = moonsdk.Configuration( host ="https://beta.usemoon.ai")# The client must configure the authentication and authorization parameters# in accordance with the API server security policy.# Examples for each auth method are provided below, use the example that# satisfies your auth use case.# Configure API key authorization: ApiKeyAuthconfiguration.api_key['ApiKeyAuth']= os.environ["API_KEY"]# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'# Configure API key authorization: BearerAuthconfiguration.api_key['BearerAuth']= os.environ["API_KEY"]# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['BearerAuth'] = 'Bearer'# Enter a context with an instance of the API clientasyncwith moonsdk.ApiClient(configuration)as api_client:# Create an instance of the API class api_instance = moonsdk.Erc721Api(api_client) authorization ='authorization_example'# str | name ='name_example'# str | erc721_request = moonsdk.Erc721Request()# Erc721Request | try: api_response =await api_instance.safe_transfer_from(authorization, name, erc721_request)print("The response of Erc721Api->safe_transfer_from:\n")pprint(api_response)exceptExceptionas e:print("Exception when calling Erc721Api->safe_transfer_from: %s\n"% e)
import moonsdkfrom moonsdk.models.erc721_request import Erc721Requestfrom moonsdk.models.transaction_api_response import TransactionAPIResponsefrom moonsdk.rest import ApiExceptionfrom pprint import pprint# Defining the host is optional and defaults to https://beta.usemoon.ai# See configuration.py for a list of all supported configuration parameters.configuration = moonsdk.Configuration( host ="https://beta.usemoon.ai")# The client must configure the authentication and authorization parameters# in accordance with the API server security policy.# Examples for each auth method are provided below, use the example that# satisfies your auth use case.# Configure API key authorization: ApiKeyAuthconfiguration.api_key['ApiKeyAuth']= os.environ["API_KEY"]# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'# Configure API key authorization: BearerAuthconfiguration.api_key['BearerAuth']= os.environ["API_KEY"]# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['BearerAuth'] = 'Bearer'# Enter a context with an instance of the API clientasyncwith moonsdk.ApiClient(configuration)as api_client:# Create an instance of the API class api_instance = moonsdk.Erc721Api(api_client) authorization ='authorization_example'# str | name ='name_example'# str | erc721_request = moonsdk.Erc721Request()# Erc721Request | try: api_response =await api_instance.set_approval_for_all(authorization, name, erc721_request)print("The response of Erc721Api->set_approval_for_all:\n")pprint(api_response)exceptExceptionas e:print("Exception when calling Erc721Api->set_approval_for_all: %s\n"% e)
import moonsdkfrom moonsdk.models.erc721_request import Erc721Requestfrom moonsdk.models.transaction_api_response import TransactionAPIResponsefrom moonsdk.rest import ApiExceptionfrom pprint import pprint# Defining the host is optional and defaults to https://beta.usemoon.ai# See configuration.py for a list of all supported configuration parameters.configuration = moonsdk.Configuration( host ="https://beta.usemoon.ai")# The client must configure the authentication and authorization parameters# in accordance with the API server security policy.# Examples for each auth method are provided below, use the example that# satisfies your auth use case.# Configure API key authorization: ApiKeyAuthconfiguration.api_key['ApiKeyAuth']= os.environ["API_KEY"]# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'# Configure API key authorization: BearerAuthconfiguration.api_key['BearerAuth']= os.environ["API_KEY"]# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['BearerAuth'] = 'Bearer'# Enter a context with an instance of the API clientasyncwith moonsdk.ApiClient(configuration)as api_client:# Create an instance of the API class api_instance = moonsdk.Erc721Api(api_client) authorization ='authorization_example'# str | name ='name_example'# str | erc721_request = moonsdk.Erc721Request()# Erc721Request | try: api_response =await api_instance.symbol(authorization, name, erc721_request)print("The response of Erc721Api->symbol:\n")pprint(api_response)exceptExceptionas e:print("Exception when calling Erc721Api->symbol: %s\n"% e)
import moonsdkfrom moonsdk.models.erc721_request import Erc721Requestfrom moonsdk.models.transaction_api_response import TransactionAPIResponsefrom moonsdk.rest import ApiExceptionfrom pprint import pprint# Defining the host is optional and defaults to https://beta.usemoon.ai# See configuration.py for a list of all supported configuration parameters.configuration = moonsdk.Configuration( host ="https://beta.usemoon.ai")# The client must configure the authentication and authorization parameters# in accordance with the API server security policy.# Examples for each auth method are provided below, use the example that# satisfies your auth use case.# Configure API key authorization: ApiKeyAuthconfiguration.api_key['ApiKeyAuth']= os.environ["API_KEY"]# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'# Configure API key authorization: BearerAuthconfiguration.api_key['BearerAuth']= os.environ["API_KEY"]# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['BearerAuth'] = 'Bearer'# Enter a context with an instance of the API clientasyncwith moonsdk.ApiClient(configuration)as api_client:# Create an instance of the API class api_instance = moonsdk.Erc721Api(api_client) authorization ='authorization_example'# str | name ='name_example'# str | erc721_request = moonsdk.Erc721Request()# Erc721Request | try: api_response =await api_instance.token_uri(authorization, name, erc721_request)print("The response of Erc721Api->token_uri:\n")pprint(api_response)exceptExceptionas e:print("Exception when calling Erc721Api->token_uri: %s\n"% e)
import moonsdkfrom moonsdk.models.erc721_request import Erc721Requestfrom moonsdk.models.transaction_api_response import TransactionAPIResponsefrom moonsdk.rest import ApiExceptionfrom pprint import pprint# Defining the host is optional and defaults to https://beta.usemoon.ai# See configuration.py for a list of all supported configuration parameters.configuration = moonsdk.Configuration( host ="https://beta.usemoon.ai")# The client must configure the authentication and authorization parameters# in accordance with the API server security policy.# Examples for each auth method are provided below, use the example that# satisfies your auth use case.# Configure API key authorization: ApiKeyAuthconfiguration.api_key['ApiKeyAuth']= os.environ["API_KEY"]# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'# Configure API key authorization: BearerAuthconfiguration.api_key['BearerAuth']= os.environ["API_KEY"]# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['BearerAuth'] = 'Bearer'# Enter a context with an instance of the API clientasyncwith moonsdk.ApiClient(configuration)as api_client:# Create an instance of the API class api_instance = moonsdk.Erc721Api(api_client) authorization ='authorization_example'# str | name ='name_example'# str | erc721_request = moonsdk.Erc721Request()# Erc721Request | try: api_response =await api_instance.transfer(authorization, name, erc721_request)print("The response of Erc721Api->transfer:\n")pprint(api_response)exceptExceptionas e:print("Exception when calling Erc721Api->transfer: %s\n"% e)
import moonsdkfrom moonsdk.models.erc721_request import Erc721Requestfrom moonsdk.models.transaction_api_response import TransactionAPIResponsefrom moonsdk.rest import ApiExceptionfrom pprint import pprint# Defining the host is optional and defaults to https://beta.usemoon.ai# See configuration.py for a list of all supported configuration parameters.configuration = moonsdk.Configuration( host ="https://beta.usemoon.ai")# The client must configure the authentication and authorization parameters# in accordance with the API server security policy.# Examples for each auth method are provided below, use the example that# satisfies your auth use case.# Configure API key authorization: ApiKeyAuthconfiguration.api_key['ApiKeyAuth']= os.environ["API_KEY"]# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'# Configure API key authorization: BearerAuthconfiguration.api_key['BearerAuth']= os.environ["API_KEY"]# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['BearerAuth'] = 'Bearer'# Enter a context with an instance of the API clientasyncwith moonsdk.ApiClient(configuration)as api_client:# Create an instance of the API class api_instance = moonsdk.Erc721Api(api_client) authorization ='authorization_example'# str | name ='name_example'# str | erc721_request = moonsdk.Erc721Request()# Erc721Request | try: api_response =await api_instance.transfer_from(authorization, name, erc721_request)print("The response of Erc721Api->transfer_from:\n")pprint(api_response)exceptExceptionas e:print("Exception when calling Erc721Api->transfer_from: %s\n"% e)