Hierarchy (View Summary)

Constructors

Properties

uploadFile: (file: Blob | File) => Promise<IpfsResponse> = ipfsUploadFile

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

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>

  • 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[]>