CosmosAPI

CosmosAPI

All URIs are relative to https://beta.usemoon.ai

Method
HTTP request
Description

createCosmosAccount

POST /cosmos

getCosmosAccount

GET /cosmos/{accountName}

listCosmosAccounts

GET /cosmos

signCosmosTransaction

POST /cosmos/{accountName}/sign-tx

createCosmosAccount

    open class func createCosmosAccount(authorization: String, cosmosInput: CosmosInput, completion: @escaping (_ data: AccountAPIResponse?, _ error: Error?) -> Void)

Example

// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import OpenAPIClient

let authorization = "authorization_example" // String | 
let cosmosInput = CosmosInput(network: "network_example", privateKey: "privateKey_example") // CosmosInput | 

CosmosAPI.createCosmosAccount(authorization: authorization, cosmosInput: cosmosInput) { (response, error) in
    guard error == nil else {
        print(error)
        return
    }

    if (response) {
        dump(response)
    }
}

Parameters

Name
Type
Description
Notes

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

Example

Parameters

Name
Type
Description
Notes

authorization

String

accountName

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

Example

Parameters

Name
Type
Description
Notes

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

Example

Parameters

Name
Type
Description
Notes

authorization

String

accountName

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]