CosmosAPI
CosmosAPI
Method
HTTP request
Description
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
Return type
Authorization
HTTP request headers
getCosmosAccount
Example
Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
listCosmosAccounts
Example
Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
signCosmosTransaction
Example
Parameters
Name
Type
Description
Notes