mirror of
https://github.com/logos-storage/logos-storage-testnet-starter.git
synced 2026-05-22 01:29:57 +00:00
Update USINGCODEX.md
re-re-add simple quoted expiry_time
This commit is contained in:
parent
96bf7a48b8
commit
f95cec0ef5
@ -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.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user