store

Stores the hex of the data in the offchain storage.

Endpoint

/v1/store

Example

Request

Success (201)

curl -X POST http://localhost:1031/v1/store \
     -H "Content-Type: application/json" \
     -d '{
           "data": "{\"exp\":\"3+1\"}"
          }'

The returned _url contains the unique ID generated by hashing the data. This URL can be used to retrieve the stored data later.

Server error (500)

{ "error": "Internal server error message" }