com.usemoon.MoonSDK.Api.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
TransactionAPIResponse Approve (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 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.
try
{
ApiResponse<TransactionAPIResponse> response = apiInstance.ApproveWithHttpInfo(authorization, name, erc721Request);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling Erc721Api.ApproveWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Parameters
Return type
TransactionAPIResponse
Authorization
ApiKeyAuth, BearerAuth
Content-Type: application/json
HTTP response details
Status code
Description
Response headers
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BalanceOf
TransactionAPIResponse BalanceOf (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 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.
try
{
ApiResponse<TransactionAPIResponse> response = apiInstance.BalanceOfWithHttpInfo(authorization, name, erc721Request);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling Erc721Api.BalanceOfWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Parameters
Return type
TransactionAPIResponse
Authorization
ApiKeyAuth, BearerAuth
Content-Type: application/json
HTTP response details
Status code
Description
Response headers
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetApproved
TransactionAPIResponse GetApproved (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 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.
try
{
ApiResponse<TransactionAPIResponse> response = apiInstance.GetApprovedWithHttpInfo(authorization, name, erc721Request);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling Erc721Api.GetApprovedWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Parameters
Return type
TransactionAPIResponse
Authorization
ApiKeyAuth, BearerAuth
Content-Type: application/json
HTTP response details
Status code
Description
Response headers
[Back to top] [Back to API list] [Back to Model list] [Back to README]
IsApprovedForAll
TransactionAPIResponse IsApprovedForAll (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 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.
try
{
ApiResponse<TransactionAPIResponse> response = apiInstance.IsApprovedForAllWithHttpInfo(authorization, name, erc721Request);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling Erc721Api.IsApprovedForAllWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Parameters
Return type
TransactionAPIResponse
Authorization
ApiKeyAuth, BearerAuth
Content-Type: application/json
HTTP response details
Status code
Description
Response 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.
try
{
ApiResponse<TransactionAPIResponse> response = apiInstance.NameWithHttpInfo(authorization, name, erc721Request);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling Erc721Api.NameWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Parameters
Return type
TransactionAPIResponse
Authorization
ApiKeyAuth, BearerAuth
Content-Type: application/json
HTTP response details
Status code
Description
Response headers
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OwnerOf
TransactionAPIResponse OwnerOf (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 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.
try
{
ApiResponse<TransactionAPIResponse> response = apiInstance.OwnerOfWithHttpInfo(authorization, name, erc721Request);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling Erc721Api.OwnerOfWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Parameters
Return type
TransactionAPIResponse
Authorization
ApiKeyAuth, BearerAuth
Content-Type: application/json
HTTP response details
Status code
Description
Response headers
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SafeTransferFrom
TransactionAPIResponse SafeTransferFrom (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 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.
try
{
ApiResponse<TransactionAPIResponse> response = apiInstance.SafeTransferFromWithHttpInfo(authorization, name, erc721Request);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling Erc721Api.SafeTransferFromWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Parameters
Return type
TransactionAPIResponse
Authorization
ApiKeyAuth, BearerAuth
Content-Type: application/json
HTTP response details
Status code
Description
Response headers
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SetApprovalForAll
TransactionAPIResponse SetApprovalForAll (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 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.
try
{
ApiResponse<TransactionAPIResponse> response = apiInstance.SetApprovalForAllWithHttpInfo(authorization, name, erc721Request);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling Erc721Api.SetApprovalForAllWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Parameters
Return type
TransactionAPIResponse
Authorization
ApiKeyAuth, BearerAuth
Content-Type: application/json
HTTP response details
Status code
Description
Response 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.
try
{
ApiResponse<TransactionAPIResponse> response = apiInstance.SymbolWithHttpInfo(authorization, name, erc721Request);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling Erc721Api.SymbolWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Parameters
Return type
TransactionAPIResponse
Authorization
ApiKeyAuth, BearerAuth
Content-Type: application/json
HTTP response details
Status code
Description
Response headers
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TokenUri
TransactionAPIResponse TokenUri (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 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.
try
{
ApiResponse<TransactionAPIResponse> response = apiInstance.TokenUriWithHttpInfo(authorization, name, erc721Request);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling Erc721Api.TokenUriWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Parameters
Return type
TransactionAPIResponse
Authorization
ApiKeyAuth, BearerAuth
Content-Type: application/json
HTTP response details
Status code
Description
Response 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.
try
{
ApiResponse<TransactionAPIResponse> response = apiInstance.TransferWithHttpInfo(authorization, name, erc721Request);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling Erc721Api.TransferWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Parameters
Return type
TransactionAPIResponse
Authorization
ApiKeyAuth, BearerAuth
Content-Type: application/json
HTTP response details
Status code
Description
Response headers
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TransferFrom
TransactionAPIResponse TransferFrom (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 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.
try
{
ApiResponse<TransactionAPIResponse> response = apiInstance.TransferFromWithHttpInfo(authorization, name, erc721Request);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling Erc721Api.TransferFromWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Parameters
Return type
TransactionAPIResponse
Authorization
ApiKeyAuth, BearerAuth
Content-Type: application/json
HTTP response details
Status code
Description
Response headers
[Back to top] [Back to API list] [Back to Model list] [Back to README]