All URIs are relative to https://beta.usemoon.ai
Method | HTTP request | Description |
---|---|---|
CreateSolanaAccount | POST /solana | |
GetSolanaAccount | GET /solana/{accountName} | |
ListSolanaAccounts | GET /solana | |
SignSolanaTransaction | POST /solana/{accountName}/sign-tx |
AccountAPIResponse CreateSolanaAccount (string authorization, SolanaInput solanaInput)
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 CreateSolanaAccountExample
{
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 SolanaApi(config);
var authorization = "authorization_example"; // string |
var solanaInput = new SolanaInput(); // SolanaInput |
try
{
AccountAPIResponse result = apiInstance.CreateSolanaAccount(authorization, solanaInput);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling SolanaApi.CreateSolanaAccount: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Using the CreateSolanaAccountWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
ApiResponse<AccountAPIResponse> response = apiInstance.CreateSolanaAccountWithHttpInfo(authorization, solanaInput);
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 SolanaApi.CreateSolanaAccountWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
authorization | string | ||
solanaInput | SolanaInput |
AccountAPIResponse
ApiKeyAuth, BearerAuth
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Ok | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AccountAPIResponse GetSolanaAccount (string authorization, string accountName)
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 GetSolanaAccountExample
{
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 SolanaApi(config);
var authorization = "authorization_example"; // string |
var accountName = "accountName_example"; // string |
try
{
AccountAPIResponse result = apiInstance.GetSolanaAccount(authorization, accountName);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling SolanaApi.GetSolanaAccount: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Using the GetSolanaAccountWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
ApiResponse<AccountAPIResponse> response = apiInstance.GetSolanaAccountWithHttpInfo(authorization, accountName);
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 SolanaApi.GetSolanaAccountWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
authorization | string | ||
accountName | string |
AccountAPIResponse
ApiKeyAuth, BearerAuth
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Ok | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AccountAPIResponse ListSolanaAccounts (string authorization)
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 ListSolanaAccountsExample
{
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 SolanaApi(config);
var authorization = "authorization_example"; // string |
try
{
AccountAPIResponse result = apiInstance.ListSolanaAccounts(authorization);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling SolanaApi.ListSolanaAccounts: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Using the ListSolanaAccountsWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
ApiResponse<AccountAPIResponse> response = apiInstance.ListSolanaAccountsWithHttpInfo(authorization);
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 SolanaApi.ListSolanaAccountsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
authorization | string |
AccountAPIResponse
ApiKeyAuth, BearerAuth
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Ok | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SolanaAPIResponse SignSolanaTransaction (string authorization, string accountName, SolanaTransactionInput solanaTransactionInput)
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 SignSolanaTransactionExample
{
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 SolanaApi(config);
var authorization = "authorization_example"; // string |
var accountName = "accountName_example"; // string |
var solanaTransactionInput = new SolanaTransactionInput(); // SolanaTransactionInput |
try
{
SolanaAPIResponse result = apiInstance.SignSolanaTransaction(authorization, accountName, solanaTransactionInput);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling SolanaApi.SignSolanaTransaction: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Using the SignSolanaTransactionWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
ApiResponse<SolanaAPIResponse> response = apiInstance.SignSolanaTransactionWithHttpInfo(authorization, accountName, solanaTransactionInput);
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 SolanaApi.SignSolanaTransactionWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
authorization | string | ||
accountName | string | ||
solanaTransactionInput | SolanaTransactionInput |
SolanaAPIResponse
ApiKeyAuth, BearerAuth
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Ok | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]