POSTversion

XRP Ledger Mainnethttps://xrpl-mainnet.nodit.io/

Returns information about the API versions the server supports. Use it to check which values you can specify for api_version in a request.

Request Body
methodstringrequired
paramsobject[]required

This method takes no parameters. Pass an empty array.

Responses
firststring

The lowest API version the server supports.

goodstring

The default version used when the request does not specify an API version.

laststring

The highest API version the server supports.

X-API-KEY
RequestCU0
cURL
curl -X POST "https://xrpl-mainnet.nodit.io/" \
  -H "X-API-KEY: {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
  "method": "version",
  "params": []
}'
Response
Example · 200
{
  "result": {
    "version": {
      "first": "1",
      "good": "2",
      "last": "2"
    }
  }
}