BitcoinApi

BitcoinApi

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

Method
HTTP request
Description

GET /bitcoin/{accountName}

POST /bitcoin/{accountName}/sign-tx

createBitcoinAccount

AccountAPIResponse createBitcoinAccount(authorization, bitcoinInput)

Example

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

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

Parameters

Name
Type
Description
Notes

authorization

kotlin.String

bitcoinInput

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

getBitcoinAccount

AccountAPIResponse getBitcoinAccount(authorization, accountName)

Example

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

val apiInstance = BitcoinApi()
val authorization : kotlin.String = authorization_example // kotlin.String | 
val accountName : kotlin.String = accountName_example // kotlin.String | 
try {
    val result : AccountAPIResponse = apiInstance.getBitcoinAccount(authorization, accountName)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling BitcoinApi#getBitcoinAccount")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling BitcoinApi#getBitcoinAccount")
    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

listBitcoinAccounts

AccountAPIResponse listBitcoinAccounts(authorization)

Example

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

val apiInstance = BitcoinApi()
val authorization : kotlin.String = authorization_example // kotlin.String | 
try {
    val result : AccountAPIResponse = apiInstance.listBitcoinAccounts(authorization)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling BitcoinApi#listBitcoinAccounts")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling BitcoinApi#listBitcoinAccounts")
    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

signBitcoinTransaction

BitcoinAPIResponse signBitcoinTransaction(authorization, accountName, bitcoinTransactionInput)

Example

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

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

Parameters

Name
Type
Description
Notes

authorization

kotlin.String

accountName

kotlin.String

bitcoinTransactionInput

Return type

BitcoinAPIResponse

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