Erc20Api

com.usemoon.MoonSDK.Api.Erc20Api

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

Method
HTTP request
Description

AllowanceErc20

POST /erc20/{name}/allowance

ApproveErc20

POST /erc20/{name}/approve

BalanceOfErc20

POST /erc20/{name}/balance-of

DecimalsErc20

POST /erc20/{name}/decimals

NameErc20

POST /erc20/{name}/name

SymbolErc20

POST /erc20/{name}/symbol

TotalSupplyErc20

POST /erc20/{name}/total-supply

TransferErc20

POST /erc20/{name}/transfer

TransferFromErc20

POST /erc20/{name}/transfer-from

AllowanceErc20

TransactionAPIResponse AllowanceErc20 (string authorization, string name, InputBody inputBody)

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 AllowanceErc20Example
    {
        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 Erc20Api(config);
            var authorization = "authorization_example";  // string | 
            var name = "name_example";  // string | 
            var inputBody = new InputBody(); // InputBody | 

            try
            {
                TransactionAPIResponse result = apiInstance.AllowanceErc20(authorization, name, inputBody);
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling Erc20Api.AllowanceErc20: " + e.Message);
                Debug.Print("Status Code: " + e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Using the AllowanceErc20WithHttpInfo variant

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

Parameters

Name
Type
Description
Notes

authorization

string

name

string

inputBody

InputBody

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]

ApproveErc20

TransactionAPIResponse ApproveErc20 (string authorization, string name, InputBody inputBody)

Example

Using the ApproveErc20WithHttpInfo variant

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

Parameters

Name
Type
Description
Notes

authorization

string

name

string

inputBody

InputBody

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]

BalanceOfErc20

TransactionAPIResponse BalanceOfErc20 (string authorization, string name, InputBody inputBody)

Example

Using the BalanceOfErc20WithHttpInfo variant

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

Parameters

Name
Type
Description
Notes

authorization

string

name

string

inputBody

InputBody

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]

DecimalsErc20

TransactionAPIResponse DecimalsErc20 (string authorization, string name, InputBody inputBody)

Example

Using the DecimalsErc20WithHttpInfo variant

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

Parameters

Name
Type
Description
Notes

authorization

string

name

string

inputBody

InputBody

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]

NameErc20

TransactionAPIResponse NameErc20 (string authorization, string name, InputBody inputBody)

Example

Using the NameErc20WithHttpInfo variant

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

Parameters

Name
Type
Description
Notes

authorization

string

name

string

inputBody

InputBody

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]

SymbolErc20

TransactionAPIResponse SymbolErc20 (string authorization, string name, InputBody inputBody)

Example

Using the SymbolErc20WithHttpInfo variant

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

Parameters

Name
Type
Description
Notes

authorization

string

name

string

inputBody

InputBody

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]

TotalSupplyErc20

TransactionAPIResponse TotalSupplyErc20 (string authorization, string name, InputBody inputBody)

Example

Using the TotalSupplyErc20WithHttpInfo variant

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

Parameters

Name
Type
Description
Notes

authorization

string

name

string

inputBody

InputBody

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]

TransferErc20

TransactionAPIResponse TransferErc20 (string authorization, string name, InputBody inputBody)

Example

Using the TransferErc20WithHttpInfo variant

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

Parameters

Name
Type
Description
Notes

authorization

string

name

string

inputBody

InputBody

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]

TransferFromErc20

TransactionAPIResponse TransferFromErc20 (string authorization, string name, InputBody inputBody)

Example

Using the TransferFromErc20WithHttpInfo variant

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

Parameters

Name
Type
Description
Notes

authorization

string

name

string

inputBody

InputBody

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]