Intented docs

Store the rules text

POST
/api/mandate

Stores the text exactly as given (never trimmed) and returns its sha256, which the owner sets on the wallet with set_mandate. Posting a text already stored returns its stored mandate_id and isn't counted against the rate limit.

Request Body

application/json
  1. body
text*string
Length1 <= length <= 2000

Response Body

Stored, or already stored

application/json
  1. response
mandate_id?string
text_hash?Hash

sha256, lowercase hex.

Match^[0-9a-f]{64}$
Example Request
curl -X POST 'https://hack.furqaannabi.com/api/mandate' \  -H 'Content-Type: application/json' \  -d '{  "text": "string"}'
Example Response
{  "mandate_id": "string",  "text_hash": "string"}