-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
51 lines (51 loc) · 1.6 KB
/
Copy pathindex.html
File metadata and controls
51 lines (51 loc) · 1.6 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
<!DOCTYPE html>
<html>
<body>
<h1>Supported Routes</h1>
<ul>
<li>
<h2>/mine</h2>
<p>Mines a new block and returns the block</p>
</li>
<li>
<h2>/transactions/new</h2>
<h3>Requires:</h3>
<pre>
<code>
{
'sender': '<sender address>',
'recipient': '<recipient address>',
'amount': <amount to send>
}
</code>
</pre>
<p>Makes a new transaction</p>
</li>
<li>
<h2>/chain</h2>
<p>Returns the current chain</p>
</li>
<li>
<h2>/nodes/register</h2>
<h3>Requires:</h3>
<pre>
<code>
{
'nodes': [
'<Node address 1>',
'<Node address 2>',
...,
'<Node address N>'
]
}
</code>
</pre>
<p>Registers new nodes to be part of the blockchain consensus</p>
</li>
<li>
<h2>/nodes/resolve</h2>
<p>Attempts to resolve conflicts with registered nodes</p>
</li>
</ul>
</body>
</html>