Options
All
  • Public
  • Public/Protected
  • All
Menu

Class File

File is an API module for requesting information about a Textile File

extends

{API}

Hierarchy

  • API
    • File

Index

Interfaces

Constructors

Properties

Methods

Constructors

constructor

Properties

file

file: FileIndex

index

index: number

links

links: Links

Methods

content

  • content(hash: string): Promise<Blob>
  • Get raw data for a File

    Parameters

    • hash: string

      The hash for the requested file

    Returns Promise<Blob>

    Raw data

meta

  • meta(target: string): Promise<any>
  • Get metadata for a File

    Parameters

    • target: string

      The hash for the target file

    Returns Promise<any>

    Metadata object