Fetch
Usage
In order to retrieve a file content from a Store message, you can use the Get() function provided by the Store object given in aleph-sdk-ts import.
Parameters
Parameter | Description |
---|---|
fileHash - required string |
|
APIServer - optional string | API server accepting files. Default: "https://api2.aleph.im" |
Return
The Get() method returns the content of the file as an ArrayBuffer. It can be turned into a string using the following:
Retrieve from an API server
If the file is stored on aleph storage:
If the file is stored on IPFS compatible server, the file is also available on:
Last updated