Check data chunk status
GET
/api/v1/storage/status/{userAddr}/{chunkID}
const url = 'http://localhost:8080/api/v1/storage/status/example/1';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/status/example/1 \ --header 'X-Signature: <X-Signature>'Check the status and health of a data chunk in the distributed storage network. Returns information about shard availability and data health.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”userAddr
required
string
Ethereum address (0x…)
chunkID
required
integer
Chunk identifier
Responses
Section titled “Responses”Status check successful
Media typeapplication/json
object
success
boolean
userAddr
string
chunkID
integer
exists
Whether the chunk exists
boolean
health
Health status of the chunk
string
healthScore
Health score (0.0 - 1.0)
number format: float
availableShards
Number of available shards
integer
totalShards
Total number of shards
integer
minRequiredShards
Minimum shards required for recovery
integer
shardStatus
Array<object>
object
shardIndex
Index of the shard
integer
available
Whether the shard is available
boolean
nodeId
Node ID storing this shard
string
error
Error message if shard is unavailable
string
checkedAt
Status check timestamp
string format: date-time
Example
{ "success": true, "userAddr": "0x1234567890123456789012345678901234567890", "chunkID": 1, "exists": true, "health": "excellent", "healthScore": 1, "availableShards": 15, "totalShards": 15, "minRequiredShards": 10, "shardStatus": [ { "shardIndex": 0, "available": true, "nodeId": "QmNode1..." } ], "checkedAt": "2025-12-10T12:00:00Z"}Bad Request - Invalid parameters
Media typeapplication/json
object
error
Error type
string
message
Human-readable error description
string
code
Optional error code
string
Example
{ "error": "Invalid request", "message": "User address must be a valid Ethereum address (0x...)"}Internal Server Error
Media typeapplication/json
object
error
Error type
string
message
Human-readable error description
string
code
Optional error code
string
Example
{ "error": "Internal server error", "message": "An unexpected error occurred"}