Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 1.28 KB

storage-pricing.md

File metadata and controls

9 lines (5 loc) · 1.28 KB

Storage Pricing

The cost of each 0G Storage request is composed of two parts: fee and storage endowment. The fee part is paid to host chain miners/validators for invoking the ZeroGravity contract to process storage request and add new data entry into the log, which is priced as other smart contract invocation transactions. In what follows we focus on the storage endowment part, which supports the perpetual reward to 0G Storage miners who serve the corresponding data.

Given a data storage request $$\mathsf{SR}$$ with specific amount of endowment $$\mathsf{SR}{endowment}$$ and size of committed data $$\mathsf{SR}{data_size}$$ (measured in number of 256 B sectors), the unit price of $$\mathsf{SR}$$ is calculated as follows:

$$\mathsf{SR}{unit_price} = {\mathsf{SR}{endowment} \over \mathsf{SR}_{data_size}}$$

This unit price $$\mathsf{SR}{unit}$$ price must exceed a globally specified lower bound to be added to the log, otherwise the request will be pending until when the lower bound decreased below $$\mathsf{SR}{unit}$$ price (in the meanwhile miners will most likely not store these unpaid data). Users are free to set a higher unit price $$\mathsf{SR}_{unit_price}$$, which would motivate more storage nodes mining on that data entry and hence lead to better data availability.