From d4533345fe1cde3e574affc32a03b4ef8e57745e Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Thu, 15 Apr 2021 23:41:53 +0300 Subject: Don't actually ignore the useful public --- site/public/block-docs/index.html | 168 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 168 insertions(+) create mode 100644 site/public/block-docs/index.html (limited to 'site/public/block-docs/index.html') diff --git a/site/public/block-docs/index.html b/site/public/block-docs/index.html new file mode 100644 index 0000000..de4d4e2 --- /dev/null +++ b/site/public/block-docs/index.html @@ -0,0 +1,168 @@ + + + + + + Blocks | Gradecoin + + + + + + + + + + + + + + +
+ + + + + + + + +
+ + +
+ + + + + +
+
+ +
+ Requests +
+ + +
+ - GET +
+ +
+ - POST +
+ + + +
+ Fields +
+ + +
+
+ + + +
+ +
Block Documentation
+

A block that was proposed to commit Transactions in transaction_list to the +ledger with a nonce that made hash valid; 6 zeroes at the left hand side of the +hash (24 bytes).

+

We are mining using blake2s algorithm, which produces 256 bit hashes. Hash/second is roughly 20x10^3 on my machine, a new block can be mined in around 4-6 minutes.

+

Requests

+

GET

+

A HTTP GET request to /block endpoint will return the latest mined block.

+

POST

+

A HTTP POST request with Authorization using JWT will allow you to propose your own blocks.

+

Fields

+
+transaction_list: [array of Fingerprints]
+nonce: unsigned 32-bit integer
+timestamp: ISO 8601 <date>T<time>
+hash: String
+
+

ISO 8601 Reference

+ + +
+ + + +
+ + + + + + + + -- cgit v1.2.3-70-g09d2