From 81ebd267c89011ca65cd5cfe382e10fabd9017ac Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Mon, 19 Apr 2021 18:21:06 +0300 Subject: Moving site to separate repo --- site/public/transaction-docs/index.html | 196 -------------------------------- 1 file changed, 196 deletions(-) delete mode 100644 site/public/transaction-docs/index.html (limited to 'site/public/transaction-docs') diff --git a/site/public/transaction-docs/index.html b/site/public/transaction-docs/index.html deleted file mode 100644 index 593bcfe..0000000 --- a/site/public/transaction-docs/index.html +++ /dev/null @@ -1,196 +0,0 @@ - - - - - - Transactions | Gradecoin - - - - - - - - - - - - - - - -
- - - - - - - - -
- - -
- - - - - -
-
- -
- Requests -
- - -
- - GET -
- -
- - POST -
- - - -
- Fields -
- - -
- Hash -
- - -
- Bank -
- - -
-
- - - -
- -
Transaction documentation
-

A transaction request between source and target to move amount Gradecoin.

-

Requests

-

GET

-

A HTTP GET request to /transaction endpoint will return the current list of pending transactions.

-

POST

-

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

-

Fields

-
-by: Fingerprint
-source: Fingerprint
-target: Fingerprint
-amount: unsigned 16 bit integer
-timestamp: ISO 8601 <date>T<time>
-

Hash

-

tha field in jwt documentation in fact stands for "The Hash", in the case of a post request for a transaction, you need the Md5 hash of the serialized JSON representation of transaction. The resulting JSON string should look something like;

-
-{"by":"foo","source":"bar","target":"baz","amount":2,"timestamp":"2021-04-18T21:49:00"}
-
-

Or; without any whitespace, separated with : and ,.

-

Bank

-

There is a bank account with Fingerprint 31415926535897932384626433832795028841971693993751058209749445923

-
-

- First 64 digits of Pi -

-
-

This is the only account that will let you withdraw from them.

-
-by: this has to be your Fingerprint
-source: this can be either you or the bank
-target: this can be a valid fingerprint or yourself if source is the bank
-...
-
- -
- - - -
- - - - - - - - -- cgit v1.2.3-70-g09d2