-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathcurrency-formats.html
More file actions
424 lines (371 loc) · 23.7 KB
/
currency-formats.html
File metadata and controls
424 lines (371 loc) · 23.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width">
<title>Currency Formats - XAG Ledger Dev Portal</title>
<!-- favicon -->
<link rel="apple-touch-icon" sizes="180x180" href="assets/favicons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="16x16" href="assets/favicons/favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="assets/favicons/favicon-32x32.png">
<link rel="manifest" href="assets/favicons/site.webmanifest">
<link rel="shortcut icon" href="favicon.ico">
<meta name="msapplication-TileColor" content="#25A768">
<meta name="msapplication-config" content="assets/favicons/browserconfig.xml">
<meta name="theme-color" content="#25A768">
<!-- jQuery -->
<script src="assets/vendor/jquery-1.11.1.min.js"></script>
<!-- Stylesheet -->
<link href="assets/css/devportal.css" rel="stylesheet" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
<!-- syntax highlighting -->
<link rel="stylesheet" href="assets/vendor/docco.min.css" />
<script src="assets/vendor/highlight.min.js"></script>
<!-- expandable code samples -->
<script src="assets/js/expandcode.js"></script>
<!-- multi-code selection tabs -->
<script src="assets/js/multicodetab.js"></script>
<script>
$(document).ready(function() {
$(".multicode").minitabs();
hljs.initHighlighting();
make_code_expandable();
});
</script>
</head>
<body class="xrp-ledger-dev-portal sidebar-primary lang-en ">
<nav class="navbar fixed-top navbar-expand-lg navbar-light bg-white">
<a href="index.html" class="navbar-brand"><img src="assets/img/logo.png" class="logo" height="44" alt="XAG Ledger Dev Portal" /></a>
<button class="navbar-toggler" type="button" data-toggle="slide-collapse" data-target="#navbarHolder" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse justify-content-end" id="navbarHolder">
<ul class="nav navbar-nav">
<li class="nav-item">
<a class="nav-link" href="dev-tools.html">Dev Tools</a>
</li>
<li class="nav-item">
<a class="nav-link" href="http://xagfans.com/" target="blank">BBS</a>
</li>
</ul>
<div class="nav navbar-nav language-selector">
<div class="dropdown">
<button class="btn btn-outline-secondary dropdown-toggle" type="button" id="language_selector_header_btn" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
English
</button>
<div class="dropdown-menu" aria-labelledby="language_selector_header_btn">
<a class="dropdown-item" href="/currency-formats.html">English</a>
<a class="dropdown-item" href="/cn/currency-formats.html">中文</a>
</div><!--/.dropdown-menu-->
</div><!--/.dropdown-->
</div><!--/.language-selector-->
</div><!--/#navbarHolder-->
<div class="menu-overlay"></div>
</nav>
<div class="container-fluid" role="document" id="main_content_wrapper">
<div class="row">
<!-- Right sidebar first so it's at the beginning for mobile layouts -->
<aside class="right-sidebar col-lg-3 order-lg-4 p-0" role="complementary">
<div class="card" id="page-toc-wrapper">
<div class="card-header">
<h4>In this document</h4>
</div>
<ul class="card-body">
<li class="level-1"><a href="#currency-formats">Currency Formats</a></li>
<li class="level-2"><a href="#comparison">Comparison</a></li>
<li class="level-2"><a href="#specifying-currency-amounts">Specifying Currency Amounts</a></li>
<li class="level-3"><a href="#xrp-amounts">XAG Amounts</a></li>
<li class="level-3"><a href="#issued-currency-amounts">Issued Currency Amounts</a></li>
<li class="level-3"><a href="#string-numbers">String Numbers</a></li>
<li class="level-2"><a href="#xrp-precision">XAG Precision</a></li>
<li class="level-2"><a href="#issued-currency-precision">Issued Currency Precision</a></li>
<li class="level-2"><a href="#currency-codes">Currency Codes</a></li>
<li class="level-3"><a href="#standard-currency-codes">Standard Currency Codes</a></li>
<li class="level-3"><a href="#nonstandard-currency-codes">Nonstandard Currency Codes</a></li>
</ul>
</div>
</aside>
<!-- main column -->
<main class="main col-md-7 col-lg-6 order-md-3 " role="main" id="main_content_body">
<nav class="breadcrumbs-wrap p-0 p-md-3" aria-label="breadcrumb">
<ul class="breadcrumb bg-white">
<li class="breadcrumb-item"><a href="index.html">Home</a></li>
<li class="active breadcrumb-item"><a href="docs.html">Docs</a></li>
<li class="active breadcrumb-item"><a href="references.html">References</a></li>
<li class="active breadcrumb-item"><a href="rippled-api.html">rippled API Reference</a></li>
<li class="active breadcrumb-item"><a href="api-conventions.html">API Conventions</a></li>
<li class="active breadcrumb-item">Currency Formats</li>
</ul>
</nav><!--/.breadcrumbs-wrap--> <article class="pt-3 p-md-3">
<div class="content">
<h1 id="currency-formats">Currency Formats</h1>
<p>The XAG Ledger has two kinds of money: <a href="xag.html">XAG </a>, and <a href="issued-currencies.html">issued currencies</a>. Both types have high precision, although their formats are different.</p>
<h2 id="comparison">Comparison</h2>
<p>The following table summarizes some of the differences between XAG and <a href="issued-currencies.html">issued currencies</a> in the XAG Ledger:</p>
<table>
<thead>
<tr>
<th align="left">XAG </th>
<th align="left">Issued Currencies</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">Has no issuer.</td>
<td align="left">Always issued by an XAG Ledger account.</td>
</tr>
<tr>
<td align="left">Specified as a string.</td>
<td align="left">Specified as an object.</td>
</tr>
<tr>
<td align="left">Tracked in <a href="accountroot.html">accounts</a>.</td>
<td align="left">Tracked in <a href="ripplestate.html">trust lines</a>.</td>
</tr>
<tr>
<td align="left">Can never be created; can only be destroyed.</td>
<td align="left">Can be issued or redeemed freely.</td>
</tr>
<tr>
<td align="left">Minimum value: <code>0</code>. (Cannot be negative.)</td>
<td align="left">Minimum value: <code>-9999999999999999e80</code>. Minimum nonzero absolute value: <code>1000000000000000e-96</code>.</td>
</tr>
<tr>
<td align="left">Maximum value <code>100000000000</code> (10<sup>11</sup>) XAG . That's <code>100000000000000000</code> (10<sup>17</sup>) "drops".</td>
<td align="left">Maximum value <code>9999999999999999e80</code>.</td>
</tr>
<tr>
<td align="left">Precise to the nearest "drop" (0.000001 XAG )</td>
<td align="left">15 decimal digits of precision.</td>
</tr>
<tr>
<td align="left">Can't be <a href="freezes.html">frozen</a>.</td>
<td align="left">The issuer can <a href="freezes.html">freeze</a> balances.</td>
</tr>
<tr>
<td align="left">No transfer fees; XAG -to-XAG payments are always direct.</td>
<td align="left">Can take indirect <a href="paths.html">paths</a> with each issuer charging a percentage <a href="transfer-fees.html">transfer fee</a>.</td>
</tr>
</tbody>
</table>
<p>For more information, see <a href="xag.html">XAG </a> and the <a href="issued-currencies-overview.html">Issued Currencies Overview</a>.</p>
<h2 id="specifying-currency-amounts">Specifying Currency Amounts</h2>
<p>Use the appropriate format for the type of currency you want to specify:</p>
<ul>
<li><a href="#xrp-amounts">XAG Amounts</a></li>
<li><a href="#issued-currency-amounts">Issued Currency Amounts</a></li>
</ul>
<h3 id="xrp-amounts">XAG Amounts</h3>
<p>To specify an amount of XAG , use a <a href="#string-numbers">String Number</a> indicating <em>drops</em> of XAG , where each drop is equal to 0.000001 XAG . For example, to specify 13.1 XAG :</p>
<pre><code>"13100000"
</code></pre>
<p><strong>Do not specify XAG as an object.</strong></p>
<p>XAG amounts cannot be negative.</p>
<h3 id="issued-currency-amounts">Issued Currency Amounts</h3>
<p>To specify an amount of any issued currency (including fiat dollars, precious metals, cryptocurrencies, or other custom currency), use a currency specification object. This is a JSON object with three fields:</p>
<table>
<thead>
<tr>
<th align="left"><code>Field</code></th>
<th align="left">Type</th>
<th align="left">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left"><code>currency</code></td>
<td align="left">String - <a href="#currency-codes">Currency Code</a></td>
<td align="left">Arbitrary code for currency to issue. Cannot be <code>XAG </code>.</td>
</tr>
<tr>
<td align="left"><code>value</code></td>
<td align="left"><a href="#string-numbers">String Number</a></td>
<td align="left">Quoted decimal representation of the amount of currency. This can include scientific notation, such as <code>1.23e11</code> meaning 123,000,000,000. Both <code>e</code> and <code>E</code> may be used.</td>
</tr>
<tr>
<td align="left"><code>issuer</code></td>
<td align="left">String</td>
<td align="left">Unique account address of the entity issuing the currency. In other words, the person or business where the currency can be redeemed.</td>
</tr>
</tbody>
</table>
<p class="devportal-callout caution"><strong>Caution:</strong> These field names are case-sensitive.</p>
<p>For example, to represent $153.75 US dollars issued by account <code>r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59</code>, you would specify:</p>
<pre><code>{
"currency": "USD",
"value": "153.75",
"issuer": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59"
}
</code></pre>
<h3 id="string-numbers">String Numbers</h3>
<p>XAG Ledger APIs generally use strings, rather than native JSON numbers, to represent numeric amounts of currency for both XAG and issued currencies. This protects against a loss of precision when using JSON parsers, which may automatically try to represent all JSON numbers in a floating-point format. Within the String value, the numbers are serialized in the same way as native JSON numbers:</p>
<ul>
<li>Base-10.</li>
<li>Non-zero-prefaced.</li>
<li>May contain <code>.</code> as a decimal point. For example, ½ is represented as <code>0.5</code>. (American style, not European)</li>
<li>Negative amounts start with the character <code>-</code>.</li>
<li>May contain <code>E</code> or <code>e</code> to indicate being raised to a power of 10 (scientific notation). For example, <code>1.2E5</code> is equivalent to 1.2×10<sup>5</sup>, or <code>120000</code>. Negative exponents are also possible.</li>
<li>No comma (<code>,</code>) characters are used.
<!-- --></li>
</ul>
<h4 id="specifying-currencies-without-amounts">Specifying Currencies Without Amounts</h4>
<p>If you are specifying a non-XAG currency without an amount (typically for defining an order book of currency exchange offers) you should specify it as above, but omit the <code>value</code> field.</p>
<p>If you are specifying XAG without an amount (typically for defining an order book) you should specify it as a JSON object with <em>only</em> a <code>currency</code> field. Never include an <code>issuer</code> field for XAG .</p>
<p>Finally, if the recipient account of the payment trusts multiple issuers for a currency, you can indicate that the payment should be made in any combination of issuers that the recipient accepts. To do this, specify the recipient account's address as the <code>issuer</code> value in the JSON object.</p>
<h2 id="xrp-precision">XAG Precision</h2>
<p>XAG has the same precision as a 64-bit unsigned integer where each unit is equivalent to 0.000001 XAG . It uses integer math, so that any amount less than a full drop is rounded down.</p>
<h2 id="issued-currency-precision">Issued Currency Precision</h2>
<p>The issued currency format can store a wide variety of assets, including those typically measured in very small or very large denominations. This format uses significant digits and a power-of-ten exponent in a similar way to scientific notation. The format supports positive and negative significant digits and exponents within the specified range. Unlike typical floating-point representations of non-whole numbers, this format uses integer math for all calculations, so it always maintains 15 decimal digits of precision. Multiplication and division have adjustments to compensate for over-rounding in the least significant digits.</p>
<p>When sending issued currency amounts in the XAG Ledger's peer-to-peer network, servers <a href="serialization.html">serialize</a> the amount to a 64-bit binary value.</p>
<p class="devportal-callout note"><strong>Note:</strong> The XAG Ledger does not support issued currencies that are not <a class="external-link" href="https://en.wikipedia.org/wiki/Fungibility" target="_blank">fungible <i aria-hidden="true" class="fa fa-external-link"></i></a>. It also does not support limiting an issued currency to whole number amounts only. All issued currencies in the XAG Ledger are always divisible down to the minimum amount.</p>
<h2 id="currency-codes">Currency Codes</h2>
<p>The <a href="rippled-api.html"><code>rippled</code> APIs</a> support two formats of currency code for issued currencies:</p>
<ul>
<li><strong><a href="currency-formats.html#standard-currency-codes">Standard Currency Codes</a>:</strong> As a 3-character string such as <code>"EUR"</code> or <code>"USD"</code>.</li>
<li><strong><a href="currency-formats.html#nonstandard-currency-codes">Nonstandard Currency Codes</a>:</strong> As a 160-bit hexadecimal string, such as <code>"0158415500000000C1F76FF6ECB0BAC600000000"</code>. This is uncommon.</li>
</ul>
<p>Currencies with the same code can <a href="rippling.html">ripple</a> across connected trust lines. Currency codes have no other behavior built into the XAG Ledger.
<!-- --></p>
<h3 id="standard-currency-codes">Standard Currency Codes</h3>
<p>The standard format for currency codes is a three-character string such as <code>USD</code>. This is intended for use with <a class="external-link" href="http://www.xe.com/iso4217.php" target="_blank">ISO 4217 Currency Codes <i aria-hidden="true" class="fa fa-external-link"></i></a>. The following rules apply:</p>
<ul>
<li>Currency codes must be exactly 3 ASCII characters in length. The following characters are permitted: all uppercase and lowercase letters, digits, as well as the symbols <code>?</code>, <code>!</code>, <code>@</code>, <code>#</code>, <code>$</code>, <code>%</code>, <code>^</code>, <code>&</code>, <code>*</code>, <code><</code>, <code>></code>, <code>(</code>, <code>)</code>, <code>{</code>, <code>}</code>, <code>[</code>, <code>]</code>, and <code>|</code>.</li>
<li>Currency codes are case-sensitive.</li>
<li>The currency code <code>XAG </code> (all-uppercase) is disallowed. Real XAG typically does not use a currency code in the XAG Ledger protocol.</li>
</ul>
<p>At the protocol level, this format is <a href="serialization.html#currency-codes">serialized</a> into a 160-bit binary value starting with <code>0x00</code>.</p>
<h3 id="nonstandard-currency-codes">Nonstandard Currency Codes</h3>
<p>You can also issue currency of other types by using a 160-bit (40-character) hexadecimal string such as <code>015841551A748AD2C1F76FF6ECB0CCCD00000000</code> as the currency code. To prevent this from being treated as a "standard" currency code, the first 8 bits MUST NOT be <code>0x00</code>.</p>
</div>
</article>
</main>
<!-- Left sidebar last so it's at the end for mobile -->
<aside class="sidebar col-md-5 col-lg-3 p-0 order-md-1" role="complementary">
<div class="tree_nav">
<!---->
<div class="sidenav_parent">
<a href="rippled-api.html"> rippled API Reference</a>
</div>
<!---->
<!---->
<div id="sidenav" role="tablist" aria-multiselectable="true">
<div class="card active">
<div class="card-header" role="tab" id="sidenav_cat_head_14">
<a class="sidenav_cat_toggler" role="button" data-toggle="collapse" href="#sidenav_collapse_14" aria-expanded="true" aria-controls="sidenav_collapse_14"></a>
<h5 class="card-title">
<a class="sidenav_cat_title active-parent" href="api-conventions.html">API Conventions</a>
</h5>
</div><!-- /.card-header -->
<div id="sidenav_collapse_14" class="collapse show" role="tabpanel" aria-labelledby="sidenav_cat_head_14">
<div class="card-body">
<ul class="sidebar_pagelist">
<li><a class="nosubcat-page" href="basic-data-types.html">Basic Data Types</a></li>
<li><a class="nosubcat-page" href="base58-encodings.html">base58 Encodings</a></li>
<li><a class="active nosubcat-page" href="currency-formats.html">Currency Formats</a></li>
<li><a class="nosubcat-page" href="error-formatting.html">Error Formatting</a></li>
<li><a class="nosubcat-page" href="markers-and-pagination.html">Markers and Pagination</a></li>
<li><a class="nosubcat-page" href="modifying-the-ledger.html">Modifying the Ledger</a></li>
<li><a class="nosubcat-page" href="rate-limiting.html">Rate Limiting</a></li>
<li><a class="nosubcat-page" href="request-formatting.html">Request Formatting</a></li>
<li><a class="nosubcat-page" href="response-formatting.html">Response Formatting</a></li>
<li><a class="nosubcat-page" href="rippled-server-states.html">rippled Server States</a></li>
<li><a class="nosubcat-page" href="serialization.html">Serialization Format</a></li>
</ul>
</div><!-- /.card-body -->
</div><!-- /#sidenav_collapse14 -->
</div><!-- /.panel -->
<div class="card">
<div class="card-header" role="tab" id="sidenav_cat_head_15">
<a class="collapsed sidenav_cat_toggler" role="button" data-toggle="collapse" href="#sidenav_collapse_15" aria-expanded="true" aria-controls="sidenav_collapse_15"></a>
<h5 class="card-title">
<a class="sidenav_cat_title" href="public-rippled-methods.html">Public rippled Methods</a>
</h5>
</div><!-- /.card-header -->
<div id="sidenav_collapse_15" class="collapse" role="tabpanel" aria-labelledby="sidenav_cat_head_15">
<div class="card-body">
<ul class="sidebar_pagelist">
<li><a class="subcat-title" href="account-methods.html">Account Methods</a></li>
<li><a class="subpage" href="account_currencies.html">account_currencies</a></li>
<li><a class="subpage" href="account_info.html">account_info</a></li>
<li><a class="subpage" href="account_lines.html">account_lines</a></li>
<li><a class="subpage" href="account_objects.html">account_objects</a></li>
<li><a class="subpage" href="account_offers.html">account_offers</a></li>
<li><a class="subpage" href="account_tx.html">account_tx</a></li>
<li><a class="subpage" href="gateway_balances.html">gateway_balances</a></li>
<li><a class="subpage" href="noripple_check.html">noripple_check</a></li>
<li><a class="subcat-title" href="ledger-methods.html">Ledger Methods</a></li>
<li><a class="subpage" href="ledger.html">ledger</a></li>
<li><a class="subpage" href="ledger_closed.html">ledger_closed</a></li>
<li><a class="subpage" href="ledger_current.html">ledger_current</a></li>
<li><a class="subpage" href="ledger_data.html">ledger_data</a></li>
<li><a class="subpage" href="ledger_entry.html">ledger_entry</a></li>
<li><a class="subcat-title" href="transaction-methods.html">Transaction Methods</a></li>
<li><a class="subpage" href="sign.html">sign</a></li>
<li><a class="subpage" href="sign_for.html">sign_for</a></li>
<li><a class="subpage" href="submit.html">submit</a></li>
<li><a class="subpage" href="submit_multisigned.html">submit_multisigned</a></li>
<li><a class="subpage" href="transaction_entry.html">transaction_entry</a></li>
<li><a class="subpage" href="tx.html">tx</a></li>
<li><a class="subpage" href="tx_history.html">tx_history</a></li>
<li><a class="subcat-title" href="path-and-order-book-methods.html">Path and Order Book Methods</a></li>
<li><a class="subpage" href="book_offers.html">book_offers</a></li>
<li><a class="subpage" href="deposit_authorized.html">deposit_authorized</a></li>
<li><a class="subpage" href="path_find.html">path_find</a></li>
<li><a class="subpage" href="ripple_path_find.html">ripple_path_find</a></li>
<li><a class="subcat-title" href="subscription-methods.html">Subscription Methods</a></li>
<li><a class="subpage" href="subscribe.html">subscribe</a></li>
<li><a class="subpage" href="unsubscribe.html">unsubscribe</a></li>
</ul>
</div><!-- /.card-body -->
</div><!-- /#sidenav_collapse15 -->
</div><!-- /.panel -->
</div><!-- /.panel -->
</div><!-- /#sidenav -->
</div><!-- /.tree_nav --> </aside>
</div><!--/.row (main layout)-->
</div>
<footer class="xrpl-footer" role="contentinfo">
<section class="container-fluid card-grid card-grid-Nx1">
</section>
<section class="container-fluid p-5 pl-sm-0">
<nav role="navigation" class="d-flex mb-3 language-selector">
<img class="language_selector_icon" src="assets/img/icon-language-selector.svg" width="32" height="40" alt="language selection icon" />
<ul class="nav">
<li class="nav-item">
<a class="nav-link active" href="/currency-formats.html"><i class="fa fa-check-circle"></i> English</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/cn/currency-formats.html">中文</a>
</li>
</ul>
</nav>
<div class="absolute_bottom_footer">
<span>© XAG Ledger Project 2019</span>
<span><a href="">License</a></span>
</div><!-- /.absolute_bottom_footer -->
</section>
</footer>
<!-- Jump to top button -->
<a href="#main_content_wrapper" class="jump-to-top btn btn-primary btn-lg" role="button" title="Jump to top of page">Top</a>
<script type="text/javascript" src="assets/js/jump-to-top.js"></script>
<!-- Non-blocking resources -->
<!-- Bootstrap JS -->
<script src="assets/vendor/bootstrap.min.js"></script>
<!-- fontawesome icons -->
<link rel="stylesheet" href="assets/vendor/fontawesome/css/font-awesome.min.css" />
<!-- Algolia DocSearch -->
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
<script type="text/javascript"> docsearch({
apiKey: '70de5b9b8ef95460f3c6e04054b325b2',
indexName: 'xrpl',
inputSelector: '#topsearchbar',
algoliaOptions: { 'facetFilters': ["lang:en"] },
debug: false
});
</script>
<script type="application/javascript">
gtag('set', {'content_group1': 'Content Docs'});
</script>
</body>
</html>