forked from XRPLF/XRPL-Cluster.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
407 lines (395 loc) · 26.4 KB
/
index.html
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
<!doctype html>
<html lang="en">
<head>
<!-- metas -->
<meta charset="utf-8">
<meta name="author" content="99pixel" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="keywords" content="xrplcluster.com" />
<meta name="description" content="XRP ledger full history cluster" />
<!-- title -->
<title>wss://xrplcluster.com</title>
<!-- Favicon -->
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<!-- plugin CSS -->
<link href="static/plugin/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<script src="https://kit.fontawesome.com/ae7120c5ba.js" crossorigin="anonymous"></script>
<link href="static/plugin/et-line/style.css" rel="stylesheet">
<!-- theme css -->
<link href="static/style/master.css" rel="stylesheet">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="https://xrplcluster.com/static/twittercard-2.png">
<meta name="twitter:creator" content="@WietseWind">
<meta name="twitter:description" content="XRP ledger full history cluster">
<meta name="twitter:title" content="wss://xrplcluster.com">
<script>
function docReady(fn) {
if (document.readyState === "complete" || document.readyState === "interactive") {
setTimeout(fn, 1)
} else {
document.addEventListener("DOMContentLoaded", fn)
}
}
docReady(function () {
document.getElementById('location').innerHTML = 'AMS'
})
</script>
</head>
<!-- Body Start -->
<body data-spy="scroll" data-target="#navbar-collapse-toggle" data-offset="98">
<!-- End Preload -->
<div id="loading">
<div class="load-circle"><span class="one"></span></div>
</div>
<!-- End Preload -->
<!-- Header -->
<header class="header-nav header-white" style="position:relative;z-index:1000;">
<div class="fixed-header-bar">
<div class="container container-large">
<div class="navbar navbar-default main-navbar" style="min-height: 60px;">
<div class="navbar-brand">
<a href="index.html" class="logo">
<span class="light-logo text-white" title=""><b>wss://xrplcluster.com</b> <small class="mt-0 pt-0 d-none d-sm-inline-block"> # XRPL Full History & tx submission Cluster</small></span>
<span class="dark-logo text-dark" title=""><b>wss://xrplcluster.com</b> <small class="mt-0 pt-0 d-none d-sm-inline-block"> # XRPL Full History & tx submission Cluster</small></span>
</a>
</div>
<div class="justify-content-end">
<ul class="nav navbar-nav">
<li><div class=""><code class="badge alert-light" id="location">???</code></div></li>
</ul>
</div>
</div>
</div>
</div>
</header>
<!-- Header End -->
<!-- Main -->
<main>
<!-- Home Banner -->
<section id="home" class="effect-section">
<div class="effect-shape theme-bg"></div>
<div class="container">
<div class="row full-screen align-items-center justify-content-between lg-m-80px-tb">
<div class="col-lg-6 m-50px-tb">
<h3><code class="badge alert-warning">wss://xrplcluster.com</code></h3>
<h1 class="white-color display-4 m-20px-b">XRP ledger full history cluster</h1>
<p class="font-1 font-w-400 white-color-light">
<b>High available, low latency & geographic routing. Provided by the <a href="https://xrplf.org" class="text-white" target="_blank">XRPLF</a> with support from trusted community members.</b>
</p>
<div class="pr-5 mr-5">
<ul class="fa-ul py-1 border-radius-6 text-white">
<li>
<span class="fa-li fa-lg"><i class="mr-1 text-danger fa-fw fw fas fa-shield-check"></i></span>
Filters out transactions sent to verified scam accounts using
<a href="https://xrplorer.com/forensics/help" class="text-white" target="_blank"><b><u>XRP Forensics</u></b></a>
</li>
<li>
<span class="fa-li fa-lg"><i class="mr-1 text-warning fa-fw fw fas fa-shield-check"></i></span>
Filters out transactions with unnecessary high transaction fee (> 2 XRP)
</li>
<li>
<span class="fa-li fa-lg"><i class="mr-1 text-success fa-fw fw fas fa-server"></i></span>
Seamless node failover without having to reconnect the WebSocket
</li>
<li>
<span class="fa-li fa-lg"><i class="mr-1 text-white fa-fw fw fas fa-route"></i></span>
Automatic routing of <code class="bg-light px-1 rounded text-muted">submit</code> transactions to a
dedicated (lowest fee) XRPL node pool.
</li>
</ul>
</div>
<div class="btn-bar p-25px-t" style="position: relative; z-index:999;">
<a class="m-btn m-btn-theme2nd m-btn-radius" href="#start">Start now</a>
</div>
</div>
<div class="col-lg-6">
<img class="max-width-auto" src="static/img/home-4-b1.svg" style="transform: scale(1.7) translateX(30px) translateY(-15px);" title="" alt="">
</div>
</div>
</div>
</section>
<!-- End Home Banner -->
<a name="start"></a>
<!-- Section -->
<section class="section">
<div class="container">
<div class="row align-items-center">
<div class="col-lg-12 m-15px-tb">
<h3 class="h1 font-w-600 dark-color m-20px-b p-20px-b theme-after after-50px pt-4">
Connect to
<code style="position: relative; top: -5px;" class="badge alert-warning">wss://xrplcluster.com</code>
<div class="h4 pl-0 text-">Just like <code class="font-weight-bold" id="many">many</code> other clients 🚀</div>
</h3>
<p class="font-2">
If you want to connect to the XRP ledger using websockets for transaction history or transaction submission, you
can now use the publicly available <code>wss://xrplcluster.com</code> endpoint. Based on latency you will be routed
to the closest, best available full history XRPL node.
</p>
<div class="text-left row p-10px-t">
<div class="col-md-6 m-15px-tb">
<div class="media">
<div class="icon-60 dots-icon border-radius-5 border-color-theme border-all-1 theme-color">
<i class="icon-speedometer"></i>
<span class="dots"><i class="dot dot1"></i><i class="dot dot2"></i><i class="dot dot3"></i></span>
</div>
<div class="media-body p-20px-l">
<h6 class="dark-color font-w-600">High performance</h6>
<p class="m-0px">Low latency, high performance. Multiple global points of presence, multiple community provided full history servers.</p>
</div>
</div>
</div>
<div class="col-md-6 m-15px-tb">
<div class="media">
<div class="icon-60 dots-icon border-radius-5 border-color-theme border-all-1 theme-color">
<i class="icon-layers"></i>
<span class="dots"><i class="dot dot1"></i><i class="dot dot2"></i><i class="dot dot3"></i></span>
</div>
<div class="media-body p-20px-l">
<h6 class="dark-color font-w-600">Redundant</h6>
<p class="m-0px">Multiple networks, multiple proxies, multiple full history servers. With live migration in case of downtime or maintenance.</p>
</div>
</div>
</div>
<div class="col-md-6 m-15px-tb">
<div class="media">
<div class="icon-60 dots-icon border-radius-5 border-color-theme border-all-1 theme-color">
<i class="icon-heart"></i>
<span class="dots"><i class="dot dot1"></i><i class="dot dot2"></i><i class="dot dot3"></i></span>
</div>
<div class="media-body p-20px-l">
<h6 class="dark-color font-w-600">Provided by the <a href="https://xrplf.org" class="text-dark" target="_blank"><u>XRPLF</u></a></h6>
<p class="m-0px">The infrastructure required to offer this service is provided by the <a href="https://xrplf.org" class="text-dark" target="_blank">XRPLF</a> and XRPL community members. Because we will all benefit when the ecosystem grows.</p>
</div>
</div>
</div>
<div class="col-md-6 m-15px-tb">
<div class="media">
<div class="icon-60 dots-icon border-radius-5 border-color-theme border-all-1 theme-color">
<i class="icon-map"></i>
<span class="dots"><i class="dot dot1"></i><i class="dot dot2"></i><i class="dot dot3"></i></span>
</div>
<div class="media-body p-20px-l">
<h6 class="dark-color font-w-600">Close to you</h6>
<p class="m-0px">
New York <code class="badge alert-success">NYC</code>,
San Francisco <code class="badge alert-success">SFO</code>,
Singapore <code class="badge alert-success">SGP</code>,
Toronto <code class="badge alert-success">TOR</code>,
Bangalore <code class="badge alert-success">BLR</code>,
London <code class="badge alert-success">LON</code>
& Falkenstein <code class="badge alert-success">FSN</code>
</p>
</div>
</div>
</div>
</div>
<div class="row pb-0 mb-0">
<div class="col-12">
<div class="card text-center shadow-sm mt-3 border-warning alert-warning bg-white">
<div class="card-body py-1">
Please note: for quality purposes, client IP addresses transmitting messages
to the XRP ledger using <code class="badge alert-warning">wss://xrplcluster.com</code>
may be recorded.
</div>
</div>
</div>
</div>
<div class="row pb-0 mb-0">
<div class="col-12 mt-5 text-center pb-0 mb-0">
<div id="btn">
<h3 class="mt-5">Want to try it?</h3>
<div class="btn-bar p-25px-t pb-0 mb-0">
<a class="m-btn m-btn-theme2nd m-btn-radius" href="#connect">Connect now</a>
</div>
</div>
<div id="connecting" class="alert alert-warning"><i class="icon-hourglass"></i> Connecting...</div>
<div id="connected" class="alert alert-primary">
Connected 🎉
<br />
Sent a <code class="text-primary"><b>server_info</b></code> request and got response in <b class="ms text-primary"></b> milliseconds
<br />
<pre class="card mt-3 mb-1 px-2 py-1 text-left"></pre>
</div>
<div id="error" class="alert alert-danger">Connection error: <b>unknown</b></div>
<script>
var connecting = document.getElementById('connecting')
var connected = document.getElementById('connected')
var error = document.getElementById('error')
var btn = document.getElementById('btn')
var pre = connected.querySelector('pre')
var reset = function () {
connecting.style.display = 'none'
connected.style.display = 'none'
error.style.display = 'none'
pre.style.display = 'none'
btn.style.display = 'block'
connected.querySelector('b.ms').innerHTML = ''
}
reset()
var socket
var interval
var isConnected = false
btn.onclick = function () {
var start = new Date()
connecting.style.display = 'block'
btn.style.display = 'none'
try {
socket = new WebSocket("wss://xrplcluster.com")
socket.onopen = function (event) {
socket.send(JSON.stringify({command: 'server_info'}))
clearInterval(interval)
setTimeout(function () {
socket.close()
isConnected = false
reset()
}, 60 * 1000)
}
socket.onmessage = function (event) {
var data = JSON.parse(event.data).result.info
if (connected.querySelector('b.ms').innerHTML === '') {
isConnected = true
connected.querySelector('b.ms').innerHTML = new Date() - start
connected.style.display = 'block'
connecting.style.display = 'none'
}
setTimeout(function () {
if (isConnected) {
socket.send(JSON.stringify({command: 'server_info'}))
}
}, 900)
pre.style.display = 'block'
pre.innerHTML = JSON.stringify({
time_utc: data.time,
build_version: data.build_version,
complete_ledgers: data.complete_ledgers,
io_latency_ms: data.io_latency_ms,
load_factor: data.load_factor,
peers: data.peers,
server_state: data.server_state,
uptime: data.uptime,
validated_ledger: data.validated_ledger
}, null, 2)
}
} catch (e) {
connecting.style.display = 'none'
connected.style.display = 'none'
error.style.display = 'block'
error.querySelector('b').innerHTML = e.message
}
}
</script>
<br />
<h3 class="mt-5 pb-3">For developers</h3>
<section class="impress_area" style="background-size: cover; background-repeat: repeat-x; background-position: center;">
<div class="container">
<div class="row justify-content-center">
<p>
Access to the cluster is provided on a best effort basis, for all developers, consumers and small businesses to use.
There are certain limits in place. For elevated connection limits, please <a href="https://forms.gle/FsXCvZsX7rapLAso8" target="_blank">get in touch</a>.
</p>
<div class="col-lg-8 text-center" style="overflow: visible; max-width: 100%;">
<script src="https://embed.runkit.com"></script>
<div id="try" style="overflow: hidden; max-width: 100%;"></div>
<script>var notebook = RunKit.createNotebook({
// the parent element for the new notebook
source: `
const WebSocket = require('ws')
return await new Promise((resolve, reject) => {
console.log('Connecting')
const Client = new WebSocket('wss://xrplcluster.com')
Client.on('open', e => {
console.log('Connected, request server_info')
Client.send(JSON.stringify({ command: 'server_info' }))
})
Client.on('message', data => {
console.log('Got response')
resolve(JSON.parse(data).result.info)
Client.close()
})
})`.trim(),
element: document.getElementById("try"),
minHeight: '400px'
})</script>
</div>
</div>
</div>
</section>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- End Section -->
<!-- Section -->
<section class="p-50px-tb theme-bg">
<div class="container">
<div class="row counter">
<div class="col-6 col-md-6 col-lg-3 m-15px-tb text-center">
<div class="count white-color h1 font-w-600" data-to="650" data-speed="650" id="pops">
<div class="d-inline-block text-center" style="position: relative; font-size: .7em; margin: 0; padding: 0; line-height: .7em; width: 1em; height: 1em; top: -5px; left: 0px;">
<i style="margin: 0; padding: 0; top: 0; left: 0;" class="fa-spin fal fa-spinner-third fa-fw"></i>
</div>
</div>
<h6 class="white-color-light after-50px white-after p-20px-b m-0px">Points of presence</h6>
</div>
<div class="col-6 col-md-6 col-lg-3 m-15px-tb text-center">
<div class="count white-color h1 font-w-600" data-to="987" data-speed="987">> <span id="ledgers">
<div class="d-inline-block text-center" style="position: relative; font-size: .7em; margin: 0; padding: 0; line-height: .7em; width: 1em; height: 1em; top: -5px; left: 0px;">
<i style="margin: 0; padding: 0; top: 0; left: 0;" class="fa-spin fal fa-spinner-third fa-fw"></i>
</div>
</span>MM</div>
<h6 class="white-color-light after-50px white-after p-20px-b m-0px">Available ledgers</h6>
</div>
<div class="col-6 col-md-6 col-lg-3 m-15px-tb text-center">
<div class="count white-color h1 font-w-600" data-to="350" data-speed="350"><span id="nodes">
<div class="d-inline-block text-center" style="position: relative; font-size: .7em; margin: 0; padding: 0; line-height: .7em; width: 1em; height: 1em; top: -5px; left: 0px;">
<i style="margin: 0; padding: 0; top: 0; left: 0;" class="fa-spin fal fa-spinner-third fa-fw"></i>
</div>
</span>+</div>
<h6 class="white-color-light after-50px white-after p-20px-b m-0px">Full history nodes</h6>
</div>
<div class="col-6 col-md-6 col-lg-3 m-15px-tb text-center">
<div class="count white-color h1 font-w-600" data-to="850" data-speed="850">> <span id="traff">
<div class="d-inline-block text-center" style="position: relative; font-size: .7em; margin: 0; padding: 0; line-height: .7em; width: 1em; height: 1em; top: -5px; left: 0px;">
<i style="margin: 0; padding: 0; top: 0; left: 0;" class="fa-spin fal fa-spinner-third fa-fw"></i>
</div>
</span>TB</div>
<h6 class="white-color-light after-50px white-after p-20px-b m-0px">Yearly traffic</h6>
</div>
</div>
<div class="text-center">
<small>Live stats publicly available at: <a class="text-white" href="https://xrpl.ws-stats.com/"><u>xrpl.ws-stats.com</u></a></small>
</div>
</div>
</section>
<script>
window.fetch('https://xrpl.ws-stats.com/json/edges').then(function (r) { return r.json() }).then(function (r) {
document.getElementById('pops').innerHTML = Object.keys(r).length
})
window.fetch('https://xrpl.ws-stats.com/json/nodes').then(function (r) { return r.json() }).then(function (r) {
document.getElementById('nodes').innerHTML = Object.keys(r).length
})
window.fetch('https://xrpl.ws-stats.com/json/traffic').then(function (r) { return r.json() }).then(function (r) {
document.getElementById('traff').innerHTML = Math.round(r.bandwidth_TB * 12)
})
window.fetch('https://xrplcluster.com', { method: 'POST', body: JSON.stringify({ method: "ledger", "params": [] }) }).then(function (r) { return r.json() }).then(function (r) {
document.getElementById('ledgers').innerHTML = r.result.closed.ledger.seqNum.slice(0, -6)
})
function getClientCount () {
window.fetch('https://xrpl.ws-stats.com/json/edge-connections').then(function (r) { return r.json() }).then(function (r) {
document.getElementById('many').innerHTML = r.active_client_count
})
}
getClientCount()
setInterval(getClientCount, 60 * 1000)
</script>
<!-- End Section -->
</main>
<!-- End Main -->
<script src="static/js/jquery-3.2.1.min.js"></script>
<script src="static/plugin/bootstrap/js/bootstrap.js"></script>
<script src="static/js/custom.js?x2"></script>
</body>
</html>