mirror of
https://github.com/logos-storage/logos-storage-py-api-client.git
synced 2026-01-02 13:33:11 +00:00
35 lines
1.4 KiB
Markdown
35 lines
1.4 KiB
Markdown
# StorageAsk
|
|
|
|
|
|
## Properties
|
|
|
|
Name | Type | Description | Notes
|
|
------------ | ------------- | ------------- | -------------
|
|
**slots** | **int** | Number of slots (eq. hosts) that the Request want to have the content spread over | [optional]
|
|
**slot_size** | **str** | Amount of storage per slot (in bytes) as decimal string | [optional]
|
|
**duration** | **str** | The duration of the request in seconds as decimal string | [optional]
|
|
**proof_probability** | **str** | How often storage proofs are required as decimal string | [optional]
|
|
**reward** | **str** | The maximum amount of tokens paid per second per slot to hosts the client is willing to pay |
|
|
**max_slot_loss** | **int** | Max slots that can be lost without data considered to be lost | [optional]
|
|
|
|
## Example
|
|
|
|
```python
|
|
from codex_api_client.models.storage_ask import StorageAsk
|
|
|
|
# TODO update the JSON string below
|
|
json = "{}"
|
|
# create an instance of StorageAsk from a JSON string
|
|
storage_ask_instance = StorageAsk.from_json(json)
|
|
# print the JSON string representation of the object
|
|
print(StorageAsk.to_json())
|
|
|
|
# convert the object into a dict
|
|
storage_ask_dict = storage_ask_instance.to_dict()
|
|
# create an instance of StorageAsk from a dict
|
|
storage_ask_from_dict = StorageAsk.from_dict(storage_ask_dict)
|
|
```
|
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
|
|
|