/api/v0/dag/stat
Gets stats for a DAG.
Arguments
arg[string]: CID of a DAG root to get statistics for Required: yes.progress[bool]: Return progressive data while reading through the DAG. Default:true. Required: no.
Response
On success, the call to this endpoint will return with 200 and the following body:
{
"DagStats": [
{
"Cid": {
"/": "<cid-string>"
},
"NumBlocks": "<int64>",
"Size": "<uint64>"
}
],
"Ratio": "<float32>",
"SharedSize": "<uint64>",
"TotalSize": "<uint64>",
"UniqueBlocks": "<int>"
}
cURL Example
curl -X POST "http://127.0.0.1:5001/api/v0/dag/stat?arg=<root>&progress=true"
Last updated