SolanaApi

SolanaApi

All URIs are relative to https://moon-vault-api-git-ew-supabase-migration-moonup.vercel.app

Method
HTTP request
Description

GET /solana/{accountName}

POST /solana/{accountName}/sign-tx

createSolanaAccount

AccountAPIResponse createSolanaAccount(authorization, solanaInput)

Example

// Import classes:
//import org.usemoonai.moonsdk.infrastructure.*
//import org.usemoonai.moonsdk.models.*

val apiInstance = SolanaApi()
val authorization : kotlin.String = authorization_example // kotlin.String | 
val solanaInput : SolanaInput =  // SolanaInput | 
try {
    val result : AccountAPIResponse = apiInstance.createSolanaAccount(authorization, solanaInput)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling SolanaApi#createSolanaAccount")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling SolanaApi#createSolanaAccount")
    e.printStackTrace()
}

Parameters

Name
Type
Description
Notes

authorization

kotlin.String

solanaInput

Return type

AccountAPIResponse

Authorization

Configure ApiKeyAuth: ApiClient.apiKey["x-api-key"] = "" ApiClient.apiKeyPrefix["x-api-key"] = "" Configure BearerAuth: ApiClient.apiKey["Authorization"] = "" ApiClient.apiKeyPrefix["Authorization"] = ""

HTTP request headers

  • Content-Type: application/json

  • Accept: application/json

getSolanaAccount

AccountAPIResponse getSolanaAccount(authorization, accountName)

Example

// Import classes:
//import org.usemoonai.moonsdk.infrastructure.*
//import org.usemoonai.moonsdk.models.*

val apiInstance = SolanaApi()
val authorization : kotlin.String = authorization_example // kotlin.String | 
val accountName : kotlin.String = accountName_example // kotlin.String | 
try {
    val result : AccountAPIResponse = apiInstance.getSolanaAccount(authorization, accountName)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling SolanaApi#getSolanaAccount")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling SolanaApi#getSolanaAccount")
    e.printStackTrace()
}

Parameters

Name
Type
Description
Notes

authorization

kotlin.String

accountName

kotlin.String

Return type

AccountAPIResponse

Authorization

Configure ApiKeyAuth: ApiClient.apiKey["x-api-key"] = "" ApiClient.apiKeyPrefix["x-api-key"] = "" Configure BearerAuth: ApiClient.apiKey["Authorization"] = "" ApiClient.apiKeyPrefix["Authorization"] = ""

HTTP request headers

  • Content-Type: Not defined

  • Accept: application/json

listSolanaAccounts

AccountAPIResponse listSolanaAccounts(authorization)

Example

// Import classes:
//import org.usemoonai.moonsdk.infrastructure.*
//import org.usemoonai.moonsdk.models.*

val apiInstance = SolanaApi()
val authorization : kotlin.String = authorization_example // kotlin.String | 
try {
    val result : AccountAPIResponse = apiInstance.listSolanaAccounts(authorization)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling SolanaApi#listSolanaAccounts")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling SolanaApi#listSolanaAccounts")
    e.printStackTrace()
}

Parameters

Name
Type
Description
Notes

authorization

kotlin.String

Return type

AccountAPIResponse

Authorization

Configure ApiKeyAuth: ApiClient.apiKey["x-api-key"] = "" ApiClient.apiKeyPrefix["x-api-key"] = "" Configure BearerAuth: ApiClient.apiKey["Authorization"] = "" ApiClient.apiKeyPrefix["Authorization"] = ""

HTTP request headers

  • Content-Type: Not defined

  • Accept: application/json

signSolanaTransaction

SolanaAPIResponse signSolanaTransaction(authorization, accountName, solanaTransactionInput)

Example

// Import classes:
//import org.usemoonai.moonsdk.infrastructure.*
//import org.usemoonai.moonsdk.models.*

val apiInstance = SolanaApi()
val authorization : kotlin.String = authorization_example // kotlin.String | 
val accountName : kotlin.String = accountName_example // kotlin.String | 
val solanaTransactionInput : SolanaTransactionInput =  // SolanaTransactionInput | 
try {
    val result : SolanaAPIResponse = apiInstance.signSolanaTransaction(authorization, accountName, solanaTransactionInput)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling SolanaApi#signSolanaTransaction")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling SolanaApi#signSolanaTransaction")
    e.printStackTrace()
}

Parameters

Name
Type
Description
Notes

authorization

kotlin.String

accountName

kotlin.String

solanaTransactionInput

Return type

SolanaAPIResponse

Authorization

Configure ApiKeyAuth: ApiClient.apiKey["x-api-key"] = "" ApiClient.apiKeyPrefix["x-api-key"] = "" Configure BearerAuth: ApiClient.apiKey["Authorization"] = "" ApiClient.apiKeyPrefix["Authorization"] = ""

HTTP request headers

  • Content-Type: application/json

  • Accept: application/json

Last updated