All URIs are relative to https://beta.usemoon.ai
Method | HTTP request | Description |
---|---|---|
CreateDogeCoinAccount | Post /dogecoin | |
GetDogeCoinAccount | Get /dogecoin/{accountName} | |
ListDogeCoinAccounts | Get /dogecoin | |
SignDogeCoinTransaction | Post /dogecoin/{accountName}/sign-tx |
AccountAPIResponse CreateDogeCoinAccount(ctx).Authorization(authorization).DogeCoinInput(dogeCoinInput).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/moon-up/moon-sdk-go"
)
func main() {
authorization := "authorization_example" // string |
dogeCoinInput := *openapiclient.NewDogeCoinInput() // DogeCoinInput |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DogeCoinAPI.CreateDogeCoinAccount(context.Background()).Authorization(authorization).DogeCoinInput(dogeCoinInput).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DogeCoinAPI.CreateDogeCoinAccount``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateDogeCoinAccount`: AccountAPIResponse
fmt.Fprintf(os.Stdout, "Response from `DogeCoinAPI.CreateDogeCoinAccount`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiCreateDogeCoinAccountRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
authorization | string | ||
dogeCoinInput | DogeCoinInput |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AccountAPIResponse GetDogeCoinAccount(ctx, accountName).Authorization(authorization).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/moon-up/moon-sdk-go"
)
func main() {
authorization := "authorization_example" // string |
accountName := "accountName_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DogeCoinAPI.GetDogeCoinAccount(context.Background(), accountName).Authorization(authorization).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DogeCoinAPI.GetDogeCoinAccount``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetDogeCoinAccount`: AccountAPIResponse
fmt.Fprintf(os.Stdout, "Response from `DogeCoinAPI.GetDogeCoinAccount`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
accountName | string |
Other parameters are passed through a pointer to a apiGetDogeCoinAccountRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
authorization | string |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AccountAPIResponse ListDogeCoinAccounts(ctx).Authorization(authorization).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/moon-up/moon-sdk-go"
)
func main() {
authorization := "authorization_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DogeCoinAPI.ListDogeCoinAccounts(context.Background()).Authorization(authorization).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DogeCoinAPI.ListDogeCoinAccounts``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListDogeCoinAccounts`: AccountAPIResponse
fmt.Fprintf(os.Stdout, "Response from `DogeCoinAPI.ListDogeCoinAccounts`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiListDogeCoinAccountsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
authorization | string |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DogeCoinAPIResponse SignDogeCoinTransaction(ctx, accountName).Authorization(authorization).DogeCoinTransactionInput(dogeCoinTransactionInput).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/moon-up/moon-sdk-go"
)
func main() {
authorization := "authorization_example" // string |
accountName := "accountName_example" // string |
dogeCoinTransactionInput := *openapiclient.NewDogeCoinTransactionInput() // DogeCoinTransactionInput |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DogeCoinAPI.SignDogeCoinTransaction(context.Background(), accountName).Authorization(authorization).DogeCoinTransactionInput(dogeCoinTransactionInput).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DogeCoinAPI.SignDogeCoinTransaction``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SignDogeCoinTransaction`: DogeCoinAPIResponse
fmt.Fprintf(os.Stdout, "Response from `DogeCoinAPI.SignDogeCoinTransaction`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
accountName | string |
Other parameters are passed through a pointer to a apiSignDogeCoinTransactionRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
authorization | string |
dogeCoinTransactionInput | DogeCoinTransactionInput | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]