diff --git a/docs/core-api/BLOCK.md b/docs/core-api/BLOCK.md index 38d31b1b21..cc40d169c8 100644 --- a/docs/core-api/BLOCK.md +++ b/docs/core-api/BLOCK.md @@ -44,13 +44,13 @@ An optional object which may have the following keys: | Type | Description | | -------- | -------- | -| `Promise` | A [Block][block] type object, containing both the data and the hash of the block | +| `Promise` | A Uint8Array containing the data of the block | ### Example ```JavaScript const block = await ipfs.block.get(cid) -console.log(block.data) +console.log(block) ``` A great source of [examples][] can be found in the tests for this API.