BitcoincashApi

BitcoincashApi

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

Method
HTTP request
Description

POST /bitcoincash

GET /bitcoincash/{accountName}

GET /bitcoincash

POST /bitcoincash/{accountName}/sign-tx

createBitcoinCashAccount

AccountAPIResponse createBitcoinCashAccount(authorization, bitcoinCashInput)

Example

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

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

Parameters

Name
Type
Description
Notes

authorization

kotlin.String

bitcoinCashInput

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

getBitcoinCashAccount

AccountAPIResponse getBitcoinCashAccount(authorization, accountName)

Example

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

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

listBitcoinCashAccounts

AccountAPIResponse listBitcoinCashAccounts(authorization)

Example

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

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

signBitcoinCashTransaction

BitcoinCashAPIResponse signBitcoinCashTransaction(authorization, accountName, bitcoinCashTransactionInput)

Example

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

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

Parameters

Name
Type
Description
Notes

authorization

kotlin.String

accountName

kotlin.String

bitcoinCashTransactionInput

Return type

BitcoinCashAPIResponse

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