Storing Data on CZAR
Now that you have your CZAR environment set up, let's explore how to store data on the CZAR network. CZAR uses a simple and efficient process for storing information on its decentralized storage platform.
Storing Data
Using the CZAR CLI:
CZAR provides a Command Line Interface (CLI) that simplifies the process of storing data. To store a file, use the following command:
Replace
path/to/your/file.txt
with the actual path to the file you want to store.Via HTTP API:
CZAR also offers a straightforward HTTP API for interacting with the network programmatically. You can use the
/store
endpoint to submit data for storage.Example using cURL:
Adjust the
data
field with the content you want to store.
Retrieving Data
Once data is stored on CZAR, you can retrieve it easily using the provided methods:
Using the CZAR CLI:
To retrieve a file, use the following command:
Replace
<transaction_id>
with the actual transaction ID of the stored data.Via HTTP API:
Utilize the
/retrieve
endpoint to fetch data through the HTTP API.Example using cURL:
Replace
<transaction_id>
with the transaction ID of the data you want to retrieve.
Exploring Advanced Features
CZAR offers advanced features such as metadata management, smart contracts, and more. Explore the official documentation to learn about these advanced functionalities.
Congratulations! You've successfully stored and retrieved data on CZAR. The next pages will cover more aspects of CZAR, including advanced features and best practices.
Last updated