Marketplace

Creates a new Request for storage

post/storage/request/{cid}

Path parameters

cidstring required

Content Identifier as specified at https://github.com/multiformats/cid

Example:QmYyQSo1c1Ym7orWxLYvCrM2EmxFTANf8wXmmE7DWjhx5N

CID of the uploaded data that should be stored

Request body

durationstring required

The duration of the request in seconds as decimal string

rewardstring required

The maximum amount of tokens paid per second per slot to hosts the client is willing to pay

proofProbabilitystring required

How often storage proofs are required as decimal string

nodesinteger

Minimal number of nodes the content should be stored on

toleranceinteger

Additional number of nodes on top of the nodes property that can be lost before pronouncing the content lost

collateralstring required

Number as decimal string that represents how much collateral is asked from hosts that wants to fill a slots

expirystring required

Number as decimal string that represents expiry threshold in seconds from when the Request is submitted. When the threshold is reached and the Request does not find requested amount of nodes to host the data, the Request is voided. The number of seconds can not be higher then the Request's duration itself.

Response

Returns the Request ID as decimal string

Changes