ERC1155Api
com.usemoon.MoonSDK.Api.ERC1155Api
Method
HTTP request
Description
BalanceOf
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 ERC1155Api(config);
var name = "name_example"; // string |
var authorization = "authorization_example"; // string |
var erc1155Request = new Erc1155Request(); // Erc1155Request |
try
{
TransactionAPIResponse result = apiInstance.BalanceOf(name, authorization, erc1155Request);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ERC1155Api.BalanceOf: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
HTTP response details
Status code
Description
Response headers
BalanceOfBatch
Example
Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
HTTP response details
Status code
Description
Response headers
IsApprovedForAll
Example
Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
HTTP response details
Status code
Description
Response headers
SafeBatchTransferFrom
Example
Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
HTTP response details
Status code
Description
Response headers
SafeTransferFrom
Example
Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
HTTP response details
Status code
Description
Response headers
SetApprovalForAll
Example
Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
HTTP response details
Status code
Description
Response headers