Marketplace

Offers storage for sale

post/sales/availability

Request body

idstring

32bits identifier encoded in hex-decimal string.

totalSizestring required

Total size of availability's storage in bytes as decimal string

durationstring required

The duration of the request in seconds as decimal string

minPricePerBytePerSecondstring required

Minimal price per byte per second paid (in amount of tokens) for the hosted request's slot for the request's duration as decimal string

totalCollateralstring required

Total collateral (in amount of tokens) that can be used for matching requests

Example request

{
  "id": "0x..."
}

Response

Created storage availability

idstring

32bits identifier encoded in hex-decimal string.

totalSizestring

Total size of availability's storage in bytes as decimal string

durationstring

The duration of the request in seconds as decimal string

minPricePerBytePerSecondstring

Minimal price per byte per second paid (in amount of tokens) for the hosted request's slot for the request's duration as decimal string

totalCollateralstring

Total collateral (in amount of tokens) that can be used for matching requests

freeSizestring

Unused size of availability's storage in bytes as decimal string

Example response

{
  "id": "0x..."
}

Changes