-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.html
170 lines (119 loc) · 6.64 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
<html>
<head>
<title>GrinNode</title>
<meta charset="utf-8" />
<style type="text/css">
body { font: 14px/1.3 verdana, arial, helvetica, sans-serif; }
h1 { font-size:1.3em; }
h2 { font-size:1.2em; }
a:link { color:#33c; }
a:visited { color:#339; }
p { max-width: 60em; }
/* so linked image won't have border */
a img { border:none; }
</style>
<script type="text/javascript">
// place your images in this array
var random_images_array = ['baby_yoda_grin.jpg','f49b6066468863b1b5fe62623ca30863824e0df1.png','ffb41d910d6dccaceae6d3b488c3e89ce6e5e324.png', 'ffb41d910d6dccaceae6d3b488c3e89ce6e5e324.png', '45f1468f150369dbbc7ea961df3297ad6aaf27a1.png', 'e16548d62df33358182a12d1f4c906a119db3cad.png', '98d6c6a46e594cec17a775b419413f296f0772a7.png','43eaa7dda52358bfec998456caa95cb4213766f9.png','83298b304330d43634d4a7bb0c82511c8b78a743.png','9a93498577f7900ed7352cc92c759e11094f58e5.png', 'grinsun/3dfc30823ab07076a0e7a51a9ec35a1c3b62d7eb.png', '73574d168c22708f382be01b50846086e582411b.png', 'grinsun/123211cdb55904430c8723498e8e2139aeff47d0.png', 'grinsun/cfd0e1c09863781eb878d1dad554757320c03be3.png'];
function getRandomImage(imgAr, path) {
path = path || 'images/LovelyGrin/'; // default path here
var num = Math.floor( Math.random() * imgAr.length );
var img = imgAr[ num ];
var imgStr = '<img src="' + path + img + '" alt = "">';
document.write(imgStr); document.close();
}
</script>
</head>
<body>
<font color="green"><h1>Grinnode.live online</h1></font>
<h3>High Available (HA) API Calls</h3>
based on the <a href="https://github.com/mimblewimble/grin/blob/master/doc/api/node_api.md#get-status" target="_blank">v1 node_api </a>GRIN coin specs.
<p> </>
<p>Following HA GRIN-Node API /v1 & /v2 calls are available:</p>
Last Update: 01/2020
<h2>+++UPDATE+++</h2>
<p>We enabled GRIN API v2 on our high-available GRIN-Node's</p>
<h3>Do I need a API secret?</h3>
No!
All API's can be used without any API secret or owner secrets.
<p><h3>GRIN API v2:</h3></p>
Start date: September 30th, 2019
More information can be found here: <a href="https://github.com/mimblewimble/grin-rfcs/blob/master/text/0007-node-api-v2.md" target="_blank">0007-node-api-v2.md</a>
<pre><code>
<strong>example:</strong>
curl -d '{"id":"json","method":"get_status","params":{} }' -o - https://grinnode.live/v2/owner
<strong> answer:</strong>
{
"id": "json",
"result": {
"Ok": {
"connections": 121,
"protocol_version": 2,
"sync_status": "no_sync",
"tip": {
"height": 527467,
"last_block_pushed": "000001a81c92da17102079862b927134e7f8210ad56af892f494a072f5b77b92",
"prev_block_to_last": "000024005775cf7e2155d8156e514b6b1f51d98483a7bdc220a22334d2b30749",
"total_difficulty": 1456919673376722
},
"user_agent": "MW/Grin 3.1.0-beta.1"
}
}
}
</code></pre>
<p><h3>GRIN API v1:</h3></p>
The following API-Calls are GRIN API v1 Calls
<ul>
<li><a href="https://grinnode.live/v1/status">/v1/status</a></li>
<ul>
<li><a href="https://github.com/mimblewimble/grin/blob/master/doc/api/node_api.md#get-status" target="_blank">Returns various information about the node and the network</a></li>
</ul>
<li><a href="https://grinnode.live/v1/blocks/">/v1/blocks</a></li>
<ul>
<li><a href="https://github.com/mimblewimble/grin/blob/master/doc/api/node_api.md#get-blocks" target="_blank">Returns data about a specific block given a hash, a height or an unspent commit.</a></li>
</ul>
<li><a href="https://grinnode.live/v1/headers/">/v1/headers</a></li>
<ul>
<li><a href="https://github.com/mimblewimble/grin/blob/master/doc/api/node_api.md#get-headers" target="_blank">Returns data about a block headers given either a hash or height or an output commit. </a></li>
</ul>
<li><a href="https://grinnode.live/v1/peers/">/v1/peers</a> (only allowed Users)</li>
<ul>
<li><a href="https://github.com/mimblewimble/grin/blob/master/doc/api/node_api.md#get-peers-connected" target="_blank">Retrieves all connected peers - BAN and UNBAN not allowed</a></li>
</ul>
<li><a href="https://grinnode.live/v1/chain/">/v1/chain</a></li>
<ul>
<li><a href="https://github.com/mimblewimble/grin/blob/master/doc/api/node_api.md#chain-endpoint" target="_blank">Retrieves details about the state of the current fork tip</a></li>
</ul>
<li><a href="https://grinnode.live/v1/txhashset/">/v1/txhashset</a></li>
<ul>
<li><a href="https://github.com/mimblewimble/grin/blob/master/doc/api/node_api.md#txhashset-endpoint" target="_blank">Retrieve the roots of the TxHashSet</a></li>
</ul>
<li><a href="https://grinnode.live/v1/pool/push">/v1/pool/push</a></li>
<ul>
<li><a href="https://github.com/mimblewimble/grin/blob/master/doc/api/node_api.md#pool-endpoint" target="_blank">Push new transaction to our local transaction pool. Add ?fluff at the end of the URL to bypass Dandelion relay.</a></li>
</ul>
</ul>
<h3>Using HA-GRIN Node </h3>
<p>1. Setup a GRIN Wallet e.g. <a href="https://github.com/mimblewimble/docs/wiki/How-to-use-the-Grin-wallet">https://github.com/mimblewimble/docs/wiki/How-to-use-the-Grin-wallet<br /></a></p>
<p>2. Use it as <strong><a href="https://github.com/mimblewimble/docs/wiki/How-to-use-the-Grin-wallet#connecting-to-a-node" target="_blank" rel="noopener">API Endpoint</a></strong> or <strong>add</strong> it to your <a href="https://github.com/mimblewimble/docs/wiki/How-to-use-the-Grin-wallet#connecting-to-a-node"><strong>grin-wallet.toml</strong> </a></p>
<blockquote>
<p><strong>CLI:<br /></strong> ./grin-wallet --api_server_address "https://grinnode.live:3413"<br /><br /><strong>grin-wallet.toml</strong> :<br /> check_node_api_http_addr = "https://grinnode.live:3413"</p>
<p> </p>
</blockquote>
<div>
<script type="text/javascript">getRandomImage(random_images_array, 'images/LovelyGrin/')</script>
</div>
<p>Pictures from <a href="https://github.com/lovelygrin/artwork"> LovelyGrin & </a>Grinsun (https://www.grin-forum.org/t/grin-and-encouragement/5900/76) </p>
contact:
<a href="https://github.com/MCM-Mike/grinnode.live">https://github.com/MCM-Mike/grinnode.live</a>
<a href="https://keybase.io/MCMMike/chat">Keybase encrypted Chat</a>
GRIN Discord: https://discord.gg/VzyfyBf (MCM-Mike)
GitHub:<a href="https://github.com/MCM-Mike/grinnode.live/blob/master/donation.md">Donation contact</a>
<p style="text-decoration: underline;">Use Blocks not Bombs</p>
<p><img width="200" height="121" src="images/blocks-not-bombs-878x1024.png" alt="Use Blocks not Bombs " /></p>
<body>
</html>