Store the rules text
POST
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.
application/json- body
text*stringLength
1 <= length <= 2000Stored, or already stored
application/json- response
mandate_id?stringtext_hash?Hashsha256, lowercase hex.
Match
^[0-9a-f]{64}$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"}