Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/core-api/BLOCK.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ An optional object which may have the following keys:
4444

4545
| Type | Description |
4646
| -------- | -------- |
47-
| `Promise<Block>` | A [Block][block] type object, containing both the data and the hash of the block |
47+
| `Promise<Uint8Array>` | A Uint8Array containing the data of the block |
4848

4949
### Example
5050

5151
```JavaScript
5252
const block = await ipfs.block.get(cid)
53-
console.log(block.data)
53+
console.log(block)
5454
```
5555

5656
A great source of [examples][] can be found in the tests for this API.

0 commit comments

Comments
 (0)