Skip to main content

block_stat

/api/v0/block/stat

Print information of a raw IPFS block.

Request

curl "https://ipfs.infura.io:5001/api/v0/block/stat?arg=<key>" \
-X POST \
-u "<YOUR-API-KEY>:<YOUR-API-KEY-SECRET>"

Request parameters

  • arg [Required] - The base58 multihash of an existing block to stat.

Response

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

Body

{
Key: "QmfQ5QAjvg4GtA3wg3adpnDJug8ktA1BxurVqBD8rtgVjM",
Size: 18
}

Result fields

  • Key - The base58 multihash string of the block.
  • Size - An integer representing the size in bytes.