Download data from distributed storage
const url = 'http://localhost:8080/api/v1/storage/download/0x1234567890123456789012345678901234567890/1?signature=0xabc...';const options = {method: 'GET', headers: {'X-Signature': '<X-Signature>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'http://localhost:8080/api/v1/storage/download/0x1234567890123456789012345678901234567890/1?signature=0xabc...' \ --header 'X-Signature: <X-Signature>'Download and decrypt data from the distributed mesh storage network. Data is automatically retrieved from available shards and decrypted.
Authentication: Optional. Provide signature or password for decryption.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Example
0x1234567890123456789012345678901234567890Ethereum address (0x…)
Example
1Chunk identifier
Query Parameters
Section titled “Query Parameters”Example
0xabc...Wallet signature for decryption key derivation
Password for decryption (alternative to signature)
Responses
Section titled “Responses”Download successful
object
Base64-encoded decrypted data
Decrypted data size in bytes
Number of shards used for retrieval
Total shards distributed
Download timestamp
Example
{ "success": true, "userAddr": "0x1234567890123456789012345678901234567890", "chunkID": 1, "data": "SGVsbG8gV29ybGQh", "sizeBytes": 1024, "shardsUsed": 10, "shardsTotal": 15, "downloadedAt": "2025-12-10T12:00:00Z"}Bad Request - Invalid parameters
object
Error type
Human-readable error description
Optional error code
Example
{ "error": "Invalid request", "message": "User address must be a valid Ethereum address (0x...)"}Unauthorized - Authentication failed
object
Error type
Human-readable error description
Optional error code
Example
{ "error": "Authentication failed", "message": "Invalid signature or expired timestamp"}Not Found - Resource doesn’t exist
object
Error type
Human-readable error description
Optional error code
Example
{ "error": "Data not found", "message": "No data found for user 0x... chunk 1"}Internal Server Error
object
Error type
Human-readable error description
Optional error code
Example
{ "error": "Internal server error", "message": "An unexpected error occurred"}