SolanaApi
com.usemoon.MoonSDK.Api.SolanaApi
All URIs are relative to https://beta.usemoon.ai
CreateSolanaAccount
POST /solana
GetSolanaAccount
GET /solana/{accountName}
ListSolanaAccounts
GET /solana
SignSolanaTransaction
POST /solana/{accountName}/sign-tx
CreateSolanaAccount
AccountAPIResponse CreateSolanaAccount (string authorization, SolanaInput solanaInput)
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 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.
Parameters
authorization
string
solanaInput
SolanaInput
Return type
AccountAPIResponse
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: application/json
Accept: application/json
HTTP response details
200
Ok
-
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetSolanaAccount
AccountAPIResponse GetSolanaAccount (string authorization, string accountName)
Example
Using the GetSolanaAccountWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
Parameters
authorization
string
accountName
string
Return type
AccountAPIResponse
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: Not defined
Accept: application/json
HTTP response details
200
Ok
-
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListSolanaAccounts
AccountAPIResponse ListSolanaAccounts (string authorization)
Example
Using the ListSolanaAccountsWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
Parameters
authorization
string
Return type
AccountAPIResponse
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: Not defined
Accept: application/json
HTTP response details
200
Ok
-
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SignSolanaTransaction
SolanaAPIResponse SignSolanaTransaction (string authorization, string accountName, SolanaTransactionInput solanaTransactionInput)
Example
Using the SignSolanaTransactionWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
Parameters
authorization
string
accountName
string
solanaTransactionInput
SolanaTransactionInput
Return type
SolanaAPIResponse
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: application/json
Accept: application/json
HTTP response details
200
Ok
-
[Back to top] [Back to API list] [Back to Model list] [Back to README]