Docs

IPFS Storage

The thirdweb SDK comes built-in with an IPFS uploader and downloader.

Download from IPFS

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

You can view all of the configuration options in the full reference.

Upload to IPFS

import { upload } from "thirdweb/storage";
const uris = await upload({
client,
files: [new File(["hello world"], "hello.txt")],
});

You can view all of the configuration options in the full reference.