using System.Collections.Generic;
using System.Diagnostics;
using com.usemoon.MoonSDK.Api;
using com.usemoon.MoonSDK.Client;
using com.usemoon.MoonSDK.Model;
namespace Example
{
public class ApproveExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://beta.usemoon.ai";
// Configure API key authorization: ApiKeyAuth
config.AddApiKey("x-api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("x-api-key", "Bearer");
// Configure API key authorization: BearerAuth
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new Erc721Api(config);
var authorization = "authorization_example"; // string |
var name = "name_example"; // string |
var erc721Request = new Erc721Request(); // Erc721Request |
try
{
TransactionAPIResponse result = apiInstance.Approve(authorization, name, erc721Request);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling Erc721Api.Approve: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Using the ApproveWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
using System.Collections.Generic;
using System.Diagnostics;
using com.usemoon.MoonSDK.Api;
using com.usemoon.MoonSDK.Client;
using com.usemoon.MoonSDK.Model;
namespace Example
{
public class BalanceOfExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://beta.usemoon.ai";
// Configure API key authorization: ApiKeyAuth
config.AddApiKey("x-api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("x-api-key", "Bearer");
// Configure API key authorization: BearerAuth
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new Erc721Api(config);
var authorization = "authorization_example"; // string |
var name = "name_example"; // string |
var erc721Request = new Erc721Request(); // Erc721Request |
try
{
TransactionAPIResponse result = apiInstance.BalanceOf(authorization, name, erc721Request);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling Erc721Api.BalanceOf: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Using the BalanceOfWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
using System.Collections.Generic;
using System.Diagnostics;
using com.usemoon.MoonSDK.Api;
using com.usemoon.MoonSDK.Client;
using com.usemoon.MoonSDK.Model;
namespace Example
{
public class GetApprovedExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://beta.usemoon.ai";
// Configure API key authorization: ApiKeyAuth
config.AddApiKey("x-api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("x-api-key", "Bearer");
// Configure API key authorization: BearerAuth
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new Erc721Api(config);
var authorization = "authorization_example"; // string |
var name = "name_example"; // string |
var erc721Request = new Erc721Request(); // Erc721Request |
try
{
TransactionAPIResponse result = apiInstance.GetApproved(authorization, name, erc721Request);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling Erc721Api.GetApproved: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Using the GetApprovedWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
using System.Collections.Generic;
using System.Diagnostics;
using com.usemoon.MoonSDK.Api;
using com.usemoon.MoonSDK.Client;
using com.usemoon.MoonSDK.Model;
namespace Example
{
public class IsApprovedForAllExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://beta.usemoon.ai";
// Configure API key authorization: ApiKeyAuth
config.AddApiKey("x-api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("x-api-key", "Bearer");
// Configure API key authorization: BearerAuth
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new Erc721Api(config);
var authorization = "authorization_example"; // string |
var name = "name_example"; // string |
var erc721Request = new Erc721Request(); // Erc721Request |
try
{
TransactionAPIResponse result = apiInstance.IsApprovedForAll(authorization, name, erc721Request);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling Erc721Api.IsApprovedForAll: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Using the IsApprovedForAllWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Name
TransactionAPIResponse Name (string authorization, string name, Erc721Request erc721Request)
Example
using System.Collections.Generic;
using System.Diagnostics;
using com.usemoon.MoonSDK.Api;
using com.usemoon.MoonSDK.Client;
using com.usemoon.MoonSDK.Model;
namespace Example
{
public class NameExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://beta.usemoon.ai";
// Configure API key authorization: ApiKeyAuth
config.AddApiKey("x-api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("x-api-key", "Bearer");
// Configure API key authorization: BearerAuth
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new Erc721Api(config);
var authorization = "authorization_example"; // string |
var name = "name_example"; // string |
var erc721Request = new Erc721Request(); // Erc721Request |
try
{
TransactionAPIResponse result = apiInstance.Name(authorization, name, erc721Request);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling Erc721Api.Name: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Using the NameWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
using System.Collections.Generic;
using System.Diagnostics;
using com.usemoon.MoonSDK.Api;
using com.usemoon.MoonSDK.Client;
using com.usemoon.MoonSDK.Model;
namespace Example
{
public class OwnerOfExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://beta.usemoon.ai";
// Configure API key authorization: ApiKeyAuth
config.AddApiKey("x-api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("x-api-key", "Bearer");
// Configure API key authorization: BearerAuth
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new Erc721Api(config);
var authorization = "authorization_example"; // string |
var name = "name_example"; // string |
var erc721Request = new Erc721Request(); // Erc721Request |
try
{
TransactionAPIResponse result = apiInstance.OwnerOf(authorization, name, erc721Request);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling Erc721Api.OwnerOf: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Using the OwnerOfWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
using System.Collections.Generic;
using System.Diagnostics;
using com.usemoon.MoonSDK.Api;
using com.usemoon.MoonSDK.Client;
using com.usemoon.MoonSDK.Model;
namespace Example
{
public class SafeTransferFromExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://beta.usemoon.ai";
// Configure API key authorization: ApiKeyAuth
config.AddApiKey("x-api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("x-api-key", "Bearer");
// Configure API key authorization: BearerAuth
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new Erc721Api(config);
var authorization = "authorization_example"; // string |
var name = "name_example"; // string |
var erc721Request = new Erc721Request(); // Erc721Request |
try
{
TransactionAPIResponse result = apiInstance.SafeTransferFrom(authorization, name, erc721Request);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling Erc721Api.SafeTransferFrom: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Using the SafeTransferFromWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
using System.Collections.Generic;
using System.Diagnostics;
using com.usemoon.MoonSDK.Api;
using com.usemoon.MoonSDK.Client;
using com.usemoon.MoonSDK.Model;
namespace Example
{
public class SetApprovalForAllExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://beta.usemoon.ai";
// Configure API key authorization: ApiKeyAuth
config.AddApiKey("x-api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("x-api-key", "Bearer");
// Configure API key authorization: BearerAuth
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new Erc721Api(config);
var authorization = "authorization_example"; // string |
var name = "name_example"; // string |
var erc721Request = new Erc721Request(); // Erc721Request |
try
{
TransactionAPIResponse result = apiInstance.SetApprovalForAll(authorization, name, erc721Request);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling Erc721Api.SetApprovalForAll: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Using the SetApprovalForAllWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Symbol
TransactionAPIResponse Symbol (string authorization, string name, Erc721Request erc721Request)
Example
using System.Collections.Generic;
using System.Diagnostics;
using com.usemoon.MoonSDK.Api;
using com.usemoon.MoonSDK.Client;
using com.usemoon.MoonSDK.Model;
namespace Example
{
public class SymbolExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://beta.usemoon.ai";
// Configure API key authorization: ApiKeyAuth
config.AddApiKey("x-api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("x-api-key", "Bearer");
// Configure API key authorization: BearerAuth
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new Erc721Api(config);
var authorization = "authorization_example"; // string |
var name = "name_example"; // string |
var erc721Request = new Erc721Request(); // Erc721Request |
try
{
TransactionAPIResponse result = apiInstance.Symbol(authorization, name, erc721Request);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling Erc721Api.Symbol: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Using the SymbolWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
using System.Collections.Generic;
using System.Diagnostics;
using com.usemoon.MoonSDK.Api;
using com.usemoon.MoonSDK.Client;
using com.usemoon.MoonSDK.Model;
namespace Example
{
public class TokenUriExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://beta.usemoon.ai";
// Configure API key authorization: ApiKeyAuth
config.AddApiKey("x-api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("x-api-key", "Bearer");
// Configure API key authorization: BearerAuth
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new Erc721Api(config);
var authorization = "authorization_example"; // string |
var name = "name_example"; // string |
var erc721Request = new Erc721Request(); // Erc721Request |
try
{
TransactionAPIResponse result = apiInstance.TokenUri(authorization, name, erc721Request);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling Erc721Api.TokenUri: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Using the TokenUriWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Transfer
TransactionAPIResponse Transfer (string authorization, string name, Erc721Request erc721Request)
Example
using System.Collections.Generic;
using System.Diagnostics;
using com.usemoon.MoonSDK.Api;
using com.usemoon.MoonSDK.Client;
using com.usemoon.MoonSDK.Model;
namespace Example
{
public class TransferExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://beta.usemoon.ai";
// Configure API key authorization: ApiKeyAuth
config.AddApiKey("x-api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("x-api-key", "Bearer");
// Configure API key authorization: BearerAuth
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new Erc721Api(config);
var authorization = "authorization_example"; // string |
var name = "name_example"; // string |
var erc721Request = new Erc721Request(); // Erc721Request |
try
{
TransactionAPIResponse result = apiInstance.Transfer(authorization, name, erc721Request);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling Erc721Api.Transfer: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Using the TransferWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
using System.Collections.Generic;
using System.Diagnostics;
using com.usemoon.MoonSDK.Api;
using com.usemoon.MoonSDK.Client;
using com.usemoon.MoonSDK.Model;
namespace Example
{
public class TransferFromExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://beta.usemoon.ai";
// Configure API key authorization: ApiKeyAuth
config.AddApiKey("x-api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("x-api-key", "Bearer");
// Configure API key authorization: BearerAuth
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new Erc721Api(config);
var authorization = "authorization_example"; // string |
var name = "name_example"; // string |
var erc721Request = new Erc721Request(); // Erc721Request |
try
{
TransactionAPIResponse result = apiInstance.TransferFrom(authorization, name, erc721Request);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling Erc721Api.TransferFrom: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Using the TransferFromWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.