Skip to main content

IPFS

Index

Constructors

constructor

  • new IPFS(token: string): IPFS
  • Parameters

    • token: string

    Returns IPFS

Properties

staticipfsData

ipfsData: {} = {}

Type declaration

  • [key string]: string

staticuseLocalIpfsData

useLocalIpfsData: boolean = ...

Methods

publicpinFile

  • pinFile(params: { keyvalues?: object; mimeType: string; name: string; size: number; stream: ReadableStream }): Promise<undefined | string>
  • Parameters

    • params: { keyvalues?: object; mimeType: string; name: string; size: number; stream: ReadableStream }

    Returns Promise<undefined | string>

publicpinJSON

  • pinJSON(params: { data: any; keyvalues?: object; name: string }): Promise<undefined | string>
  • Parameters

    • params: { data: any; keyvalues?: object; name: string }

    Returns Promise<undefined | string>