Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • IpfsApiHelper

Index

Constructors

constructor

Properties

OBJECT_MAX_SIZE

OBJECT_MAX_SIZE: number = 256 * 1024

REQUEST_TIMEOUT

REQUEST_TIMEOUT: number = 60 * 1000

apiClient

apiClient: any

Accessors

Static ENC_BASE58

  • get ENC_BASE58(): string

Methods

add

  • add(data: any, isFile?: boolean): any

addFile

  • addFile(dataBuffer: Buffer): any

addLink

  • addLink(link: object, linkTo: string): any
  • Parameters

    • link: object
      • hash: string
      • name: string
      • size: number
    • linkTo: string

    Returns any

addLinkFrom

  • addLinkFrom(data: any, name: string, linkTo: string): any

addObject

  • addObject(data: any): any

createNode

  • createNode(root: any, links: any[]): any

findLinkPath

  • findLinkPath(start: string, path: string[]): any

findLinks

  • findLinks(hash: string, names: string[]): any

get

  • get(objectHash: string, isFile?: boolean): any

getFile

  • getFile(hash: string): Bluebird<Object>

getLinks

  • getLinks(hash: string): any

getObject

  • getObject(objectHash: string, full?: boolean): any

getStats

  • getStats(objectHash: string): any

updateObject

  • updateObject(hash: string, newData: Object): any
  • Parameters

    • hash: string
    • newData: Object

    Returns any

    |PromiseLike<{Data: any, Hash: any}>|Bluebird<{Data: any, Hash: any}>}

Generated using TypeDoc