rchain-client-api
Version:
RChain client for node.js, browsers
28 lines (26 loc) • 863 B
HTML
<html>
<head>
<title>RChain Node API fun</title>
</head>
<body>
<h1>API Fun</h1>
<select id='nodeAddress'>
<option value='http://node0.testnet.rchain-dev.tk:40403/api'>node0</option>
</select>
<pre id='status'>
...?
</pre>
<h2>RHOC snapshot projection</h2>
<fieldset>
<div><label>CountdownBlock: <input id="CountdownBlock" type="text" value="9371743" /></label></div>
<div><label>apikey: <input id="apikey" type="password" /></label></div>
<div><button id="project">Project</button></div>
<div>ETA: <span id="ETA"></span> (<span id='delta'></span>)</div>
</fieldset>
</body>
<script type='module' async>
import { main } from './tool.js';
main({ alert, now: () => Date.now(), fetch, getElementById: id => document.getElementById(id) });
</script>
</html>