Share Dialog
Share Dialog
Subscribe to Ukraine
Subscribe to Ukraine
<100 subscribers
<100 subscribers
Kyve Network is a decentralized data storage network built on top of the Cosmos blockchain. It allows users to store and access data securely and transparently. One way to access stored data on the Kyve Network is through REST API. Here's how you can do it:
Get an API key To access the Kyve Network REST API, you need to obtain an API key. You can get one by creating an account on the Kyve Network website and generating an API key from the settings page.
Set up the endpoint The Kyve Network REST API endpoint is: https://api.kyve.network. To access the data, you need to make HTTP requests to this endpoint.
Choose a data endpoint Kyve Network provides several data endpoints, each designed to retrieve specific data. Here are some examples:
/data/:cid - retrieves a piece of data with the given content ID (CID)
/data/:cid/tags - retrieves the tags associated with the data with the given CID
/data/:cid/owners - retrieves the list of owners who have stored the data with the given CID
Make a request To retrieve data from Kyve Network, you need to make an HTTP GET request to the appropriate endpoint, passing your API key in the headers. For example, to retrieve data with the CID "abc123", you would make a request to the following URL:
javascriptCopy codehttps://api.kyve.network/data/abc123
You would also need to include your API key in the headers of the request, like this:
cssCopy codeAuthorization: Bearer {API_KEY}
Replace {API_KEY} with your actual API key.
Handle the response The response to your request will be in JSON format and will contain the requested data. For example, if you requested the data with the CID "abc123", the response might look like this:
jsonCopy code{
"cid": "abc123",
"data": "SGVsbG8gV29ybGQh",
"owners": [
"0x123abc",
"0x456def"
]
}
The cid field contains the content ID of the data, data contains the actual data (in this case, the string "Hello World!"), and owners contains an array of Ethereum addresses representing the owners of the data.
That's it! With these steps, you should be able to retrieve data from Kyve Network using the REST API.
Kyve Network is a decentralized data storage network built on top of the Cosmos blockchain. It allows users to store and access data securely and transparently. One way to access stored data on the Kyve Network is through REST API. Here's how you can do it:
Get an API key To access the Kyve Network REST API, you need to obtain an API key. You can get one by creating an account on the Kyve Network website and generating an API key from the settings page.
Set up the endpoint The Kyve Network REST API endpoint is: https://api.kyve.network. To access the data, you need to make HTTP requests to this endpoint.
Choose a data endpoint Kyve Network provides several data endpoints, each designed to retrieve specific data. Here are some examples:
/data/:cid - retrieves a piece of data with the given content ID (CID)
/data/:cid/tags - retrieves the tags associated with the data with the given CID
/data/:cid/owners - retrieves the list of owners who have stored the data with the given CID
Make a request To retrieve data from Kyve Network, you need to make an HTTP GET request to the appropriate endpoint, passing your API key in the headers. For example, to retrieve data with the CID "abc123", you would make a request to the following URL:
javascriptCopy codehttps://api.kyve.network/data/abc123
You would also need to include your API key in the headers of the request, like this:
cssCopy codeAuthorization: Bearer {API_KEY}
Replace {API_KEY} with your actual API key.
Handle the response The response to your request will be in JSON format and will contain the requested data. For example, if you requested the data with the CID "abc123", the response might look like this:
jsonCopy code{
"cid": "abc123",
"data": "SGVsbG8gV29ybGQh",
"owners": [
"0x123abc",
"0x456def"
]
}
The cid field contains the content ID of the data, data contains the actual data (in this case, the string "Hello World!"), and owners contains an array of Ethereum addresses representing the owners of the data.
That's it! With these steps, you should be able to retrieve data from Kyve Network using the REST API.
No activity yet