From 59ea3bd25b1f113168333eccdc9ffc4acd98cfe6 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Mon, 19 Apr 2021 18:23:22 +0300 Subject: Initial commit --- content/transaction_docs.md | 52 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 content/transaction_docs.md (limited to 'content/transaction_docs.md') diff --git a/content/transaction_docs.md b/content/transaction_docs.md new file mode 100644 index 0000000..05c1534 --- /dev/null +++ b/content/transaction_docs.md @@ -0,0 +1,52 @@ ++++ +title = "Transactions" +description = "Transaction documentation" +weight = 6 ++++ + +A transaction request between `source` and `target` to move `amount` Gradecoin. + +# Requests + +## GET +A HTTP `GET` request to [/transaction](/transaction) endpoint will return the current list of pending transactions. + +## POST + +A HTTP `POST` request with Authorization using JWT to [/transaction](/transactions) will allow you to propose your own transactions. + +# Fields +``` +by: Fingerprint +source: Fingerprint +target: Fingerprint +amount: unsigned 16 bit integer +timestamp: ISO 8601 T