All URIs are relative to https://moon-vault-api-git-ew-supabase-migration-moonup.vercel.app
AccountAPIResponse createCosmosAccount(authorization, cosmosInput)
// Import classes:
import org.usemoonai.moonsdk.client.ApiClient;
import org.usemoonai.moonsdk.client.ApiException;
import org.usemoonai.moonsdk.client.Configuration;
import org.usemoonai.moonsdk.client.auth.*;
import org.usemoonai.moonsdk.client.models.*;
import org.usemoonai.moonsdk.api.CosmosApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://moon-vault-api-git-ew-supabase-migration-moonup.vercel.app");
// Configure API key authorization: ApiKeyAuth
ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
ApiKeyAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.setApiKeyPrefix("Token");
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
CosmosApi apiInstance = new CosmosApi(defaultClient);
String authorization = "authorization_example"; // String |
CosmosInput cosmosInput = new CosmosInput(); // CosmosInput |
try {
AccountAPIResponse result = apiInstance.createCosmosAccount(authorization, cosmosInput);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CosmosApi#createCosmosAccount");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name |
Type |
Description |
Notes |
authorization |
String |
|
|
cosmosInput |
CosmosInput |
|
|
AccountAPIResponse
ApiKeyAuth, BearerAuth
HTTP request headers
- Content-Type: application/json
- Accept: application/json
Status code |
Description |
Response headers |
200 |
Ok |
- |
AccountAPIResponse getCosmosAccount(authorization, accountName)
// Import classes:
import org.usemoonai.moonsdk.client.ApiClient;
import org.usemoonai.moonsdk.client.ApiException;
import org.usemoonai.moonsdk.client.Configuration;
import org.usemoonai.moonsdk.client.auth.*;
import org.usemoonai.moonsdk.client.models.*;
import org.usemoonai.moonsdk.api.CosmosApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://moon-vault-api-git-ew-supabase-migration-moonup.vercel.app");
// Configure API key authorization: ApiKeyAuth
ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
ApiKeyAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.setApiKeyPrefix("Token");
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
CosmosApi apiInstance = new CosmosApi(defaultClient);
String authorization = "authorization_example"; // String |
String accountName = "accountName_example"; // String |
try {
AccountAPIResponse result = apiInstance.getCosmosAccount(authorization, accountName);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CosmosApi#getCosmosAccount");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name |
Type |
Description |
Notes |
authorization |
String |
|
|
accountName |
String |
|
|
AccountAPIResponse
ApiKeyAuth, BearerAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
Status code |
Description |
Response headers |
200 |
Ok |
- |
AccountAPIResponse listCosmosAccounts(authorization)
// Import classes:
import org.usemoonai.moonsdk.client.ApiClient;
import org.usemoonai.moonsdk.client.ApiException;
import org.usemoonai.moonsdk.client.Configuration;
import org.usemoonai.moonsdk.client.auth.*;
import org.usemoonai.moonsdk.client.models.*;
import org.usemoonai.moonsdk.api.CosmosApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://moon-vault-api-git-ew-supabase-migration-moonup.vercel.app");
// Configure API key authorization: ApiKeyAuth
ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
ApiKeyAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.setApiKeyPrefix("Token");
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
CosmosApi apiInstance = new CosmosApi(defaultClient);
String authorization = "authorization_example"; // String |
try {
AccountAPIResponse result = apiInstance.listCosmosAccounts(authorization);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CosmosApi#listCosmosAccounts");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name |
Type |
Description |
Notes |
authorization |
String |
|
|
AccountAPIResponse
ApiKeyAuth, BearerAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
Status code |
Description |
Response headers |
200 |
Ok |
- |
CosmosAPIResponse signCosmosTransaction(authorization, accountName, cosmosTransactionInput)
// Import classes:
import org.usemoonai.moonsdk.client.ApiClient;
import org.usemoonai.moonsdk.client.ApiException;
import org.usemoonai.moonsdk.client.Configuration;
import org.usemoonai.moonsdk.client.auth.*;
import org.usemoonai.moonsdk.client.models.*;
import org.usemoonai.moonsdk.api.CosmosApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://moon-vault-api-git-ew-supabase-migration-moonup.vercel.app");
// Configure API key authorization: ApiKeyAuth
ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
ApiKeyAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.setApiKeyPrefix("Token");
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
CosmosApi apiInstance = new CosmosApi(defaultClient);
String authorization = "authorization_example"; // String |
String accountName = "accountName_example"; // String |
CosmosTransactionInput cosmosTransactionInput = new CosmosTransactionInput(); // CosmosTransactionInput |
try {
CosmosAPIResponse result = apiInstance.signCosmosTransaction(authorization, accountName, cosmosTransactionInput);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CosmosApi#signCosmosTransaction");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name |
Type |
Description |
Notes |
authorization |
String |
|
|
accountName |
String |
|
|
cosmosTransactionInput |
CosmosTransactionInput |
|
|
CosmosAPIResponse
ApiKeyAuth, BearerAuth
HTTP request headers
- Content-Type: application/json
- Accept: application/json
Status code |
Description |
Response headers |
200 |
Ok |
- |