You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BREAKING CHANGE: repo.blocks.query() now returns multihashes as a key
instead of CID. If you want to have CID returned call it as query({},
true), which will constructs CIDv1 using IPLD's RAW codec. This means
that this constructed CID might not equal to the one that the block was originally
saved. Related to ipfs/js-ipfs#2415
Copy file name to clipboardExpand all lines: README.md
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -199,6 +199,25 @@ Get block.
199
199
200
200
*`cid` is the content id of [type CID](https://github.com/ipld/js-cid#readme).
201
201
202
+
#### `Promise<boolean> repo.blocks.has (obj)`
203
+
204
+
Indicate if block is present
205
+
206
+
*`obj` is either the content id of [type CID](https://github.com/ipld/js-cid#readme) or [multihash](https://github.com/multiformats/js-multihashing).
207
+
208
+
#### `Promise<boolean> repo.blocks.delete (obj)`
209
+
210
+
Deletes
211
+
212
+
*`obj` is either the content id of [type CID](https://github.com/ipld/js-cid#readme) or [multihash](https://github.com/multiformats/js-multihashing).
0 commit comments