\BitcoinAPI
Method
HTTP request
Description
CreateBitcoinAccount
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/moon-up/moon-sdk-go"
)
func main() {
authorization := "authorization_example" // string |
bitcoinInput := *openapiclient.NewBitcoinInput() // BitcoinInput |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BitcoinAPI.CreateBitcoinAccount(context.Background()).Authorization(authorization).BitcoinInput(bitcoinInput).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BitcoinAPI.CreateBitcoinAccount``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateBitcoinAccount`: AccountAPIResponse
fmt.Fprintf(os.Stdout, "Response from `BitcoinAPI.CreateBitcoinAccount`: %v\n", resp)
}Path Parameters
Other Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
GetBitcoinAccount
Example
Path Parameters
Name
Type
Description
Notes
Other Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
ListBitcoinAccounts
Example
Path Parameters
Other Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
SignBitcoinTransaction
Example
Path Parameters
Name
Type
Description
Notes
Other Parameters
Name
Type
Description
Notes