Update USINGCODEX.md

re-re-add simple quoted expiry_time
This commit is contained in:
Jaremy Creechley 2024-04-07 15:11:55 +03:00 committed by GitHub
parent 96bf7a48b8
commit f95cec0ef5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -92,21 +92,19 @@ Next you can run:
```shell ```shell
curl --request POST \ curl --request POST \
--url "http://localhost:8080/api/codex/v1/storage/request/$CID" \ --url http://localhost:8080/api/codex/v1/storage/request/$CID \
--header 'Content-Type: application/json' \ --header 'Content-Type: application/json' \
--data "{ --data '{
\"duration\": \"3600\", "duration": "3600",
\"reward\": \"1\", "reward": "1",
\"proofProbability\": \"3\", "proofProbability": "3",
\"expiry\": \"$EXPIRY_TIME\", "expiry": "'${EXPIRY_TIME}'",
\"nodes\": 2, "nodes": 2,
\"tolerance\": 1, "tolerance": 1,
\"collateral\": \"1\" "collateral": "1"
}" }'
``` ```
Note that the `\"` pieces are needed for the command to interperate properly.
For descriptions of each parameter, please view the [Spec](https://github.com/codex-storage/nim-codex/blob/master/openapi.yaml). For descriptions of each parameter, please view the [Spec](https://github.com/codex-storage/nim-codex/blob/master/openapi.yaml).
'Expiry' must be a Unix timestamp in the future, but not further than 'duration' seconds from now. You can use [this](https://www.unixtimestamp.com) to generate one. 'Expiry' must be a Unix timestamp in the future, but not further than 'duration' seconds from now. You can use [this](https://www.unixtimestamp.com) to generate one.