You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/references/http-websocket-apis/index.md
+19-2Lines changed: 19 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -6,11 +6,11 @@ metadata:
6
6
---
7
7
# HTTP / WebSocket APIs
8
8
9
-
You can communicate directly with the XRP Ledger by `rippled` servers through the publicly available APIs.
9
+
You can communicate with the XRP Ledger through the `rippled` servers' publicly available APIs.
10
10
11
11
Currently, there are two API versions: `1` and `2` {% badge href="https://github.com/XRPLF/rippled/releases/tag/2.0.0" %}New in: rippled 2.0.0{% /badge %}. The server reports the range of supported API versions in the `version` API method. <!-- STYLE_OVERRIDE: will --><!-- TODO: add a link when `version` method is documented. -->
12
12
13
-
Separate API requests can use different API versions even on the same persistent connection. For example, if you connect WebSocket to a server that supports API versions 1 and 2, you can make an `account_tx` request using API version 2 and then make another `account_tx` request using API version 1 from the same connection.
13
+
Separate API requests can use different API versions even on the same persistent connection. For example, if you connect through WebSocket to a server that supports API versions 1 and 2, you can make an `account_tx` request using API version 2 and then make another `account_tx` request using API version 1 from the same connection.
14
14
15
15
Future versions of `rippled` that introduce breaking changes will introduce a new API version 3.
16
16
@@ -43,6 +43,23 @@ The following types of changes are **non-breaking changes** and may occur withou
43
43
- Adding a new field to a request or response, not including positional parameters.
44
44
- Adding a new API method.
45
45
46
+
47
+
## Default API Versions
48
+
49
+
The table below shows which version of the `rippled` API is used if you don't specify it in the request:
50
+
51
+
| Request Format | API Version | Additional Notes |
0 commit comments