Skip to main content

IStorage.get() method

Fetches data from storage. This method expects to fetch JSON formatted data

Signature:

get(hash: string): Promise<Record<string, any>>;

Parameters

ParameterTypeDescription
hashstringThe Hash of the file to fetch

Returns:

Promise<Record<string, any>>

  • The data, if found.