Marketplace

Offers storage for sale

post/sales/availability

Request body

totalSizeinteger required

Total size of availability's storage in bytes

durationinteger required

The duration of the request in seconds

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

enabledboolean

Enable the ability to receive sales on this availability.

untilinteger

Specifies the latest timestamp, after which the availability will no longer host any slots. If set to 0, there will be no restrictions.

Response

Created storage availability

totalSizeinteger required

Total size of availability's storage in bytes

durationinteger required

The duration of the request in seconds

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

enabledboolean

Enable the ability to receive sales on this availability.

untilinteger

Specifies the latest timestamp, after which the availability will no longer host any slots. If set to 0, there will be no restrictions.

idstring required

32bits identifier encoded in hex-decimal string.

freeSizeinteger

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

totalRemainingCollateralstring required

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

Example response

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

Changes