From af6a696997960269ca72eaf750b3e5bf58bf40e7 Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Sun, 19 Dec 2021 23:52:39 +0100 Subject: [PATCH] docs: core-api/block https://github.com/ipfs/js-ipfs/blob/45d9baa7576a0ac924f3d01d49371bf1a4cf654c/packages/ipfs-core-types/src/block/index.ts#L14 --- docs/core-api/BLOCK.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.