version
The version
command retrieves the API version information of the Clio server. For rippled
servers, see version
(rippled
) instead.
Request Format
An example of the request format:
{
"command": "version"
}
The request does not take any parameters.
Response Format
An example of a successful response:
{
"result": {
"version": {
"first": 1,
"last": 2,
"good": 1
}
},
"status": "success",
"type": "response",
"warnings": [
{
"id": 2001,
"message": "This is a clio server. clio only serves validated data. If you want to talk to rippled, include 'ledger_index':'current' in your request"
}
]
}
The response follows the standard format, with a successful result containing an info
object as its only field.
The version
object returns some arrangement of the following fields:
Field | Type | Description |
---|---|---|
first | Integer | Lowest supported API release |
last | Integer | Highest supported API release |
good | Integer | Default API if none specified |
Possible Errors
- Any of the universal error types.