// Import classes:importorg.usemoonai.moonsdk.client.ApiClient;importorg.usemoonai.moonsdk.client.ApiException;importorg.usemoonai.moonsdk.client.Configuration;importorg.usemoonai.moonsdk.client.auth.*;importorg.usemoonai.moonsdk.client.models.*;importorg.usemoonai.moonsdk.api.AaveApi;publicclassExample {publicstaticvoidmain(String[] args) {ApiClient defaultClient =Configuration.getDefaultApiClient();defaultClient.setBasePath("https://moon-vault-api-git-ew-supabase-migration-moonup.vercel.app");// Configure API key authorization: ApiKeyAuthApiKeyAuth 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: BearerAuthApiKeyAuth 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");AaveApi apiInstance =newAaveApi(defaultClient);String authorization ="authorization_example"; // String | String name ="name_example"; // String | AaveInput aaveInput =newAaveInput(); // AaveInput | try {TransactionAPIResponse result =apiInstance.borrow(authorization, name, aaveInput);System.out.println(result); } catch (ApiException e) {System.err.println("Exception when calling AaveApi#borrow");System.err.println("Status code: "+e.getCode());System.err.println("Reason: "+e.getResponseBody());System.err.println("Response headers: "+e.getResponseHeaders());e.printStackTrace(); } }}
// Import classes:importorg.usemoonai.moonsdk.client.ApiClient;importorg.usemoonai.moonsdk.client.ApiException;importorg.usemoonai.moonsdk.client.Configuration;importorg.usemoonai.moonsdk.client.auth.*;importorg.usemoonai.moonsdk.client.models.*;importorg.usemoonai.moonsdk.api.AaveApi;publicclassExample {publicstaticvoidmain(String[] args) {ApiClient defaultClient =Configuration.getDefaultApiClient();defaultClient.setBasePath("https://moon-vault-api-git-ew-supabase-migration-moonup.vercel.app");// Configure API key authorization: ApiKeyAuthApiKeyAuth 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: BearerAuthApiKeyAuth 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");AaveApi apiInstance =newAaveApi(defaultClient);String authorization ="authorization_example"; // String | String name ="name_example"; // String | AaveInput aaveInput =newAaveInput(); // AaveInput | try {TransactionAPIResponse result =apiInstance.lend(authorization, name, aaveInput);System.out.println(result); } catch (ApiException e) {System.err.println("Exception when calling AaveApi#lend");System.err.println("Status code: "+e.getCode());System.err.println("Reason: "+e.getResponseBody());System.err.println("Response headers: "+e.getResponseHeaders());e.printStackTrace(); } }}
// Import classes:importorg.usemoonai.moonsdk.client.ApiClient;importorg.usemoonai.moonsdk.client.ApiException;importorg.usemoonai.moonsdk.client.Configuration;importorg.usemoonai.moonsdk.client.auth.*;importorg.usemoonai.moonsdk.client.models.*;importorg.usemoonai.moonsdk.api.AaveApi;publicclassExample {publicstaticvoidmain(String[] args) {ApiClient defaultClient =Configuration.getDefaultApiClient();defaultClient.setBasePath("https://moon-vault-api-git-ew-supabase-migration-moonup.vercel.app");// Configure API key authorization: ApiKeyAuthApiKeyAuth 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: BearerAuthApiKeyAuth 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");AaveApi apiInstance =newAaveApi(defaultClient);String authorization ="authorization_example"; // String | String name ="name_example"; // String | AaveInput aaveInput =newAaveInput(); // AaveInput | try {TransactionAPIResponse result =apiInstance.repay(authorization, name, aaveInput);System.out.println(result); } catch (ApiException e) {System.err.println("Exception when calling AaveApi#repay");System.err.println("Status code: "+e.getCode());System.err.println("Reason: "+e.getResponseBody());System.err.println("Response headers: "+e.getResponseHeaders());e.printStackTrace(); } }}
// Import classes:importorg.usemoonai.moonsdk.client.ApiClient;importorg.usemoonai.moonsdk.client.ApiException;importorg.usemoonai.moonsdk.client.Configuration;importorg.usemoonai.moonsdk.client.auth.*;importorg.usemoonai.moonsdk.client.models.*;importorg.usemoonai.moonsdk.api.AaveApi;publicclassExample {publicstaticvoidmain(String[] args) {ApiClient defaultClient =Configuration.getDefaultApiClient();defaultClient.setBasePath("https://moon-vault-api-git-ew-supabase-migration-moonup.vercel.app");// Configure API key authorization: ApiKeyAuthApiKeyAuth 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: BearerAuthApiKeyAuth 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");AaveApi apiInstance =newAaveApi(defaultClient);String authorization ="authorization_example"; // String | String name ="name_example"; // String | AaveInput aaveInput =newAaveInput(); // AaveInput | try {AaveReservesAPIResponse result =apiInstance.userReserveData(authorization, name, aaveInput);System.out.println(result); } catch (ApiException e) {System.err.println("Exception when calling AaveApi#userReserveData");System.err.println("Status code: "+e.getCode());System.err.println("Reason: "+e.getResponseBody());System.err.println("Response headers: "+e.getResponseHeaders());e.printStackTrace(); } }}