\CosmosAPI
All URIs are relative to https://beta.usemoon.ai
CreateCosmosAccount
Post /cosmos
GetCosmosAccount
Get /cosmos/{accountName}
ListCosmosAccounts
Get /cosmos
SignCosmosTransaction
Post /cosmos/{accountName}/sign-tx
CreateCosmosAccount
AccountAPIResponse CreateCosmosAccount(ctx).Authorization(authorization).CosmosInput(cosmosInput).Execute()
Example
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiCreateCosmosAccountRequest struct via the builder pattern
authorization
string
cosmosInput
CosmosInput
Return type
AccountAPIResponse
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: application/json
Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetCosmosAccount
AccountAPIResponse GetCosmosAccount(ctx, accountName).Authorization(authorization).Execute()
Example
Path Parameters
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
accountName
string
Other Parameters
Other parameters are passed through a pointer to a apiGetCosmosAccountRequest struct via the builder pattern
authorization
string
Return type
AccountAPIResponse
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: Not defined
Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListCosmosAccounts
AccountAPIResponse ListCosmosAccounts(ctx).Authorization(authorization).Execute()
Example
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiListCosmosAccountsRequest struct via the builder pattern
authorization
string
Return type
AccountAPIResponse
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: Not defined
Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SignCosmosTransaction
CosmosAPIResponse SignCosmosTransaction(ctx, accountName).Authorization(authorization).CosmosTransactionInput(cosmosTransactionInput).Execute()
Example
Path Parameters
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
accountName
string
Other Parameters
Other parameters are passed through a pointer to a apiSignCosmosTransactionRequest struct via the builder pattern
authorization
string
cosmosTransactionInput | CosmosTransactionInput | |
Return type
CosmosAPIResponse
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: application/json
Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]