BitcoinApi
com.usemoon.MoonSDK.Api.BitcoinApi
All URIs are relative to https://beta.usemoon.ai
CreateBitcoinAccount
POST /bitcoin
GetBitcoinAccount
GET /bitcoin/{accountName}
ListBitcoinAccounts
GET /bitcoin
SignBitcoinTransaction
POST /bitcoin/{accountName}/sign-tx
CreateBitcoinAccount
AccountAPIResponse CreateBitcoinAccount (string authorization, BitcoinInput bitcoinInput)
Example
using System.Collections.Generic;
using System.Diagnostics;
using com.usemoon.MoonSDK.Api;
using com.usemoon.MoonSDK.Client;
using com.usemoon.MoonSDK.Model;
namespace Example
{
public class CreateBitcoinAccountExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://beta.usemoon.ai";
// Configure API key authorization: ApiKeyAuth
config.AddApiKey("x-api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("x-api-key", "Bearer");
// Configure API key authorization: BearerAuth
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new BitcoinApi(config);
var authorization = "authorization_example"; // string |
var bitcoinInput = new BitcoinInput(); // BitcoinInput |
try
{
AccountAPIResponse result = apiInstance.CreateBitcoinAccount(authorization, bitcoinInput);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BitcoinApi.CreateBitcoinAccount: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}Using the CreateBitcoinAccountWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
Parameters
authorization
string
bitcoinInput
BitcoinInput
Return type
AccountAPIResponse
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: application/json
Accept: application/json
HTTP response details
200
Ok
-
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetBitcoinAccount
AccountAPIResponse GetBitcoinAccount (string authorization, string accountName)
Example
Using the GetBitcoinAccountWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
Parameters
authorization
string
accountName
string
Return type
AccountAPIResponse
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: Not defined
Accept: application/json
HTTP response details
200
Ok
-
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListBitcoinAccounts
AccountAPIResponse ListBitcoinAccounts (string authorization)
Example
Using the ListBitcoinAccountsWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
Parameters
authorization
string
Return type
AccountAPIResponse
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: Not defined
Accept: application/json
HTTP response details
200
Ok
-
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SignBitcoinTransaction
BitcoinAPIResponse SignBitcoinTransaction (string authorization, string accountName, BitcoinTransactionInput bitcoinTransactionInput)
Example
Using the SignBitcoinTransactionWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
Parameters
authorization
string
accountName
string
bitcoinTransactionInput
BitcoinTransactionInput
Return type
BitcoinAPIResponse
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: application/json
Accept: application/json
HTTP response details
200
Ok
-
[Back to top] [Back to API list] [Back to Model list] [Back to README]