Options
All
  • Public
  • Public/Protected
  • All
Menu

Class IPFSWrapper

Thin layer around ipfs-http-client

usage
const wrapper = new IPFSWrapper(options);
const {cid} await wrapper.IPFS.add("hello world");
const echo = await wrapper.IPFS.get(cid);
assert(echo === "hello world")

Hierarchy

  • IPFSWrapper

Index

Constructors

Properties

Accessors

Methods

Constructors

Properties

_IPFS: IPFS
options: IPFSOptions

Accessors

  • get IPFS(): IPFS

Methods

  • add(data: ImportCandidate, options?: GetOptions): Promise<AddResult>
  • get(cid: IPFSPath, options?: GetOptions): Promise<undefined | string | IPFSEntry>
  • Parameters

    • cid: IPFSPath
    • Optional options: GetOptions

    Returns Promise<undefined | string | IPFSEntry>

Generated using TypeDoc