logos-storage-py-api-client/docs/StorageRequestCreation.md
2025-03-31 15:49:38 +00:00

2.0 KiB

StorageRequestCreation

Properties

Name Type Description Notes
duration int The duration of the request in seconds
price_per_byte_per_second str The amount of tokens paid per byte per second per slot to hosts the client is willing to pay
proof_probability str How often storage proofs are required as decimal string
nodes int Minimal number of nodes the content should be stored on [optional] [default to 3]
tolerance int Additional number of nodes on top of the `nodes` property that can be lost before pronouncing the content lost [optional] [default to 1]
collateral_per_byte str Number as decimal string that represents how much collateral per byte is asked from hosts that wants to fill a slots
expiry int Number that represents expiry threshold in seconds from when the Request is submitted. When the threshold is reached and the Request does not find requested amount of nodes to host the data, the Request is voided. The number of seconds can not be higher then the Request's duration itself.

Example

from codex_api_client.models.storage_request_creation import StorageRequestCreation

# TODO update the JSON string below
json = "{}"
# create an instance of StorageRequestCreation from a JSON string
storage_request_creation_instance = StorageRequestCreation.from_json(json)
# print the JSON string representation of the object
print(StorageRequestCreation.to_json())

# convert the object into a dict
storage_request_creation_dict = storage_request_creation_instance.to_dict()
# create an instance of StorageRequestCreation from a dict
storage_request_creation_from_dict = StorageRequestCreation.from_dict(storage_request_creation_dict)

[Back to Model list] [Back to API list] [Back to README]