最終更新:
編集

version

[Source]

The version command retrieves the API version information of the Clio server. For rippled servers, see version (rippled) instead. New in: Clio v2.0.0

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:

FieldTypeDescription
firstIntegerLowest supported API release
lastIntegerHighest supported API release
goodIntegerDefault API if none specified

Possible Errors