ERC1155Api

com.usemoon.MoonSDK.Api.ERC1155Api

All URIs are relative to https://beta.usemoon.ai

Method
HTTP request
Description

BalanceOf

POST /erc1155/{name}/balance-of

BalanceOfBatch

POST /erc1155/{name}/balance-of-batch

IsApprovedForAll

POST /erc1155/{name}/is-approved-for-all

SafeBatchTransferFrom

POST /erc1155/{name}/safe-batch-transfer-from

SafeTransferFrom

POST /erc1155/{name}/safe-transfer-from

SetApprovalForAll

POST /erc1155/{name}/set-approval-for-all

BalanceOf

TransactionAPIResponse BalanceOf (string name, string authorization, Erc1155Request erc1155Request)

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);
            }
        }
    }
}

Using the BalanceOfWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

Name
Type
Description
Notes

name

string

authorization

string

erc1155Request

Erc1155Request

Return type

TransactionAPIResponse

Authorization

ApiKeyAuth, BearerAuth

HTTP request headers

  • Content-Type: application/json

  • Accept: application/json

HTTP response details

Status code
Description
Response headers

200

Ok

-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

BalanceOfBatch

TransactionAPIResponse BalanceOfBatch (string name, string authorization, Erc1155Request erc1155Request)

Example

Using the BalanceOfBatchWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

Name
Type
Description
Notes

name

string

authorization

string

erc1155Request

Erc1155Request

Return type

TransactionAPIResponse

Authorization

ApiKeyAuth, BearerAuth

HTTP request headers

  • Content-Type: application/json

  • Accept: application/json

HTTP response details

Status code
Description
Response headers

200

Ok

-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

IsApprovedForAll

TransactionAPIResponse IsApprovedForAll (string name, string authorization, Erc1155Request erc1155Request)

Example

Using the IsApprovedForAllWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

Name
Type
Description
Notes

name

string

authorization

string

erc1155Request

Erc1155Request

Return type

TransactionAPIResponse

Authorization

ApiKeyAuth, BearerAuth

HTTP request headers

  • Content-Type: application/json

  • Accept: application/json

HTTP response details

Status code
Description
Response headers

200

Ok

-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

SafeBatchTransferFrom

TransactionAPIResponse SafeBatchTransferFrom (string name, string authorization, Erc1155Request erc1155Request)

Example

Using the SafeBatchTransferFromWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

Name
Type
Description
Notes

name

string

authorization

string

erc1155Request

Erc1155Request

Return type

TransactionAPIResponse

Authorization

ApiKeyAuth, BearerAuth

HTTP request headers

  • Content-Type: application/json

  • Accept: application/json

HTTP response details

Status code
Description
Response headers

200

Ok

-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

SafeTransferFrom

TransactionAPIResponse SafeTransferFrom (string name, string authorization, Erc1155Request erc1155Request)

Example

Using the SafeTransferFromWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

Name
Type
Description
Notes

name

string

authorization

string

erc1155Request

Erc1155Request

Return type

TransactionAPIResponse

Authorization

ApiKeyAuth, BearerAuth

HTTP request headers

  • Content-Type: application/json

  • Accept: application/json

HTTP response details

Status code
Description
Response headers

200

Ok

-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

SetApprovalForAll

TransactionAPIResponse SetApprovalForAll (string name, string authorization, Erc1155Request erc1155Request)

Example

Using the SetApprovalForAllWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

Name
Type
Description
Notes

name

string

authorization

string

erc1155Request

Erc1155Request

Return type

TransactionAPIResponse

Authorization

ApiKeyAuth, BearerAuth

HTTP request headers

  • Content-Type: application/json

  • Accept: application/json

HTTP response details

Status code
Description
Response headers

200

Ok

-

[Back to top] [Back to API list] [Back to Model list] [Back to README]