download

Downloads a file from the specified URI.

Example

import { download } from "thirdweb/storage";
const file = await download({
client,
uri: "ipfs://Qm...",
});

Parameters

Returns

A Promise that resolves to the downloaded file.