Hierarchy (view full)

Constructors

Properties

uploadFile: ((file) => Promise<IpfsResponse>) = ipfsUploadFile

Upload a file to IPFS. equivalent to ipfsUploadFile from crossbell/ipfs

Type declaration

    • (file): Promise<IpfsResponse>
    • Parameters

      • file: File | Blob

      Returns Promise<IpfsResponse>

Methods

  • Get the character ID from a handle or character ID. If the input is a number, it will be treated as a character ID and returned directly. Otherwise, it will be treated as a handle and the character ID will be looked up.

    Parameters

    Returns Promise<number>

  • Returns Promise<{}>

  • Get the interaction count for a note. This includes views, likes, comments, and tips.

    Parameters

    • characterId: number
    • noteId: number

    Returns Promise<InteractionCount>

  • Upload files to IPFS.

    Parameters

    • urls: string[]

      remote file urls

    Returns Promise<IpfsResponse[]>