Represents an immutable block of data that is uniquely referenced with a cid.
const block = new Block(Uint8Array.from([0, 1, 2, 3]), new CID('...'))
The data to be stored in the block as a Uint8Array.
The cid of the data
The cid of the data this block represents.
The data of this block.
Check if the given value is a Block.
Represents an immutable block of data that is uniquely referenced with a cid.
const block = new Block(Uint8Array.from([0, 1, 2, 3]), new CID('...'))