block_stat

/api/v0/block/stat

Print information of a raw IPFS block.

REQUEST

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

REQUEST PARAMS

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

EXAMPLE

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

RESPONSE

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

RESULT FIELDS

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

BODY

1
{
2
Key: "QmfQ5QAjvg4GtA3wg3adpnDJug8ktA1BxurVqBD8rtgVjM",
3
Size: 18
4
}
Copied!
Last modified 3mo ago