diff options
Diffstat (limited to 'site/public/transaction-docs')
-rw-r--r-- | site/public/transaction-docs/index.html | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/site/public/transaction-docs/index.html b/site/public/transaction-docs/index.html index 4f8ef9c..593bcfe 100644 --- a/site/public/transaction-docs/index.html +++ b/site/public/transaction-docs/index.html | |||
@@ -126,7 +126,11 @@ target: Fingerprint | |||
126 | amount: unsigned 16 bit integer | 126 | amount: unsigned 16 bit integer |
127 | timestamp: ISO 8601 <date>T<time> | 127 | timestamp: ISO 8601 <date>T<time> |
128 | </span></code></pre><h1 id="hash">Hash</h1> | 128 | </span></code></pre><h1 id="hash">Hash</h1> |
129 | <p><code>tha</code> field in <a href="https://gradecoin.xyz/jwt/">jwt documentation</a> 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.</p> | 129 | <p><code>tha</code> field in <a href="https://gradecoin.xyz/jwt/">jwt documentation</a> 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;</p> |
130 | <pre style="background-color:#ffffff;"> | ||
131 | <code><span style="color:#545052;">{"by":"foo","source":"bar","target":"baz","amount":2,"timestamp":"2021-04-18T21:49:00"} | ||
132 | </span></code></pre> | ||
133 | <p>Or; without any whitespace, separated with <code>:</code> and <code>,</code>.</p> | ||
130 | <h1 id="bank">Bank</h1> | 134 | <h1 id="bank">Bank</h1> |
131 | <p>There is a <code>bank</code> account with Fingerprint <code>31415926535897932384626433832795028841971693993751058209749445923</code></p> | 135 | <p>There is a <code>bank</code> account with Fingerprint <code>31415926535897932384626433832795028841971693993751058209749445923</code></p> |
132 | <blockquote class="tidbit"> | 136 | <blockquote class="tidbit"> |