Erc20Api
com.usemoon.MoonSDK.Api.Erc20Api
Method
HTTP request
Description
AllowanceErc20
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);
}
}
}
}Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
HTTP response details
Status code
Description
Response headers
ApproveErc20
Example
Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
HTTP response details
Status code
Description
Response headers
BalanceOfErc20
Example
Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
HTTP response details
Status code
Description
Response headers
DecimalsErc20
Example
Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
HTTP response details
Status code
Description
Response headers
NameErc20
Example
Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
HTTP response details
Status code
Description
Response headers
SymbolErc20
Example
Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
HTTP response details
Status code
Description
Response headers
TotalSupplyErc20
Example
Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
HTTP response details
Status code
Description
Response headers
TransferErc20
Example
Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
HTTP response details
Status code
Description
Response headers
TransferFromErc20
Example
Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
HTTP response details
Status code
Description
Response headers