interface Pins { add(cid,
options?): AsyncGenerator<CID<unknown, number, number, Version>, void, undefined>; get(cid,
options?): Promise<Pin>; isPinned(cid,
options?): Promise<boolean>; ls(options?): AsyncGenerator<Pin, void, undefined>; rm(cid,
options?): AsyncGenerator<CID<unknown, number, number, Version>, void, undefined>; setMetadata(cid,
metadata,
options?): Promise<void>; } Methods
add
- add(cid, options?): AsyncGenerator<CID<unknown, number, number, Version>, void, undefined>
Returns AsyncGenerator<CID<unknown, number, number, Version>, void, undefined>
get
- get(cid, options?): Promise<Pin>
isPinned
- isPinned(cid, options?): Promise<boolean>
Returns Promise<boolean>
ls
- ls(options?): AsyncGenerator<Pin, void, undefined>
rm
- rm(cid, options?): AsyncGenerator<CID<unknown, number, number, Version>, void, undefined>
Returns AsyncGenerator<CID<unknown, number, number, Version>, void, undefined>
setMetadata
- setMetadata(cid, metadata, options?): Promise<void>
Pin a block in the blockstore. It will not be deleted when garbage collection is run.