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