From c38545f032a82702c7a2f9b670176c14de80e2d3 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Thu, 15 Apr 2021 23:35:24 +0300 Subject: Reorder site navigation items --- site/public/block-docs/index.html | 168 -------------------------------------- 1 file changed, 168 deletions(-) delete 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 deleted file mode 100644 index d323198..0000000 --- a/site/public/block-docs/index.html +++ /dev/null @@ -1,168 +0,0 @@ - - - - - - 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