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

nodesnumber

Minimal number of nodes the content should be stored on

tolerancenumber

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 time of the request (in unix timestamp)

Response

Returns the Request ID as decimal string

Changes