block_stat

/api/v0/block/stat

Print information of a raw IPFS block.

REQUEST

curl "https://ipfs.krypc.io:5001/api/v0/block/stat?arg=<key>" \
    -X POST \
    -u "<API_KEY>:<API_KEY_SECRET>"

REQUEST PARAMS

  • 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.

Last updated