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

Commit

Permalink
docs: core-api/block (#3990)
Browse files Browse the repository at this point in the history
  • Loading branch information
lidel authored Jan 10, 2022
1 parent 45d9baa commit 67a8c47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/core-api/BLOCK.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ An optional object which may have the following keys:

| Type | Description |
| -------- | -------- |
| `Promise<Block>` | A [Block][block] type object, containing both the data and the hash of the block |
| `Promise<Uint8Array>` | 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.
Expand Down

0 comments on commit 67a8c47

Please sign in to comment.