Update USINGCODEX.md

Revert to quoted
This commit is contained in:
Jaremy Creechley 2024-04-07 14:55:19 +03:00 committed by GitHub
parent abbb6cc549
commit 96bf7a48b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -91,17 +91,18 @@ echo EXPIRY_TIME: $EXPIRY_TIME
Next you can run:
```shell
curl "http://localhost:8080/api/codex/v1/storage/request/$CID" \
--header 'Content-Type: application/json' \
--data '{
"duration": "3600",
"reward": "1",
"proofProbability": "3",
"expiry": '"'${EXPIRY_TIME}'"',
"nodes": 2,
"tolerance": 1,
"collateral": "1"
}'
curl --request POST \
--url "http://localhost:8080/api/codex/v1/storage/request/$CID" \
--header 'Content-Type: application/json' \
--data "{
\"duration\": \"3600\",
\"reward\": \"1\",
\"proofProbability\": \"3\",
\"expiry\": \"$EXPIRY_TIME\",
\"nodes\": 2,
\"tolerance\": 1,
\"collateral\": \"1\"
}"
```
Note that the `\"` pieces are needed for the command to interperate properly.