object_stat

/api/v0/object/stat

Get stats for the DAG node named by key.

REQUEST

1
POST https://ipfs.infura.io:5001/api/v0/object/stat?arg=<key>
Copied!

REQUEST PARAMS

  • arg [required] - Key of the object to retrieve, in base58-encoded multihash format.

EXAMPLE

1
// POST
2
curl -X POST "https://ipfs.infura.io:5001/api/v0/object/stat?arg=QmZtmD2qt6fJot32nabSP3CUjicnypEBz7bHVDhPQt9aAy"
Copied!

RESPONSE

On success, the call to this endpoint will return with 200 and the following body:

RESULT FIELDS

  • Hash - Hash of the object
  • NumLinks - number of links the node contains
  • BlockSize - size of the raw serialized node
  • LinksSize - size of the links block section
  • DataSize - size of data block section
  • CumulativeSize - size of the tree (BlockSize + link sizes)

BODY

1
{
2
"Hash": "QmZtmD2qt6fJot32nabSP3CUjicnypEBz7bHVDhPQt9aAy",
3
"NumLinks": 0,
4
"BlockSize": 29,
5
"LinksSize": 2,
6
"DataSize": 27,
7
"CumulativeSize": 29
8
}
Copied!
Last modified 3mo ago