block_stat

Print information of a raw IPFS block.

/api/v0/block/stat

Print information of a raw IPFS block.

REQUEST

curl "https://mainnet-rpc.wetez.io/ipfs/$AdminKey/api/v0/block/stat?arg=<key>" \
    -X POST

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: "QmZACwaaaKQpYTFuaaxCC3z8cyJRAkk1bSfVSSViLQPAGu",
    Size: 20
}

RESULT FIELDS

  • Key - The base58 multihash string of the block.

  • Size - An integer representing the size in bytes.

Last updated