Storage
Everything uploaded using thirdweb is automatically uploaded and pinned to IPFS.
Please connect your wallet to begin uploading.
Gateway
Using our gateway, you can easily access files and folders stored on IPFS:
Gateway URL: https://ipfs.thirdwebcdn.com/ipfs/[cid]
CLI
Using thirdweb CLI, you can easily upload files and folders to IPFS from your terminal:
npx thirdweb upload ./path/to/file-or-folder
Integrate into your app
import { ThirdwebStorage } from "@thirdweb-dev/storage";
// First, instantiate the thirdweb IPFS storageconst storage = new ThirdwebStorage();
// Here we get the IPFS URI of where our metadata has been uploadedconst uri = await storage.upload(metadata);// This will log a URL like ipfs://QmWgbcjKWCXhaLzMz4gNBxQpAHktQK6MkLvBkKXbsoWEEy/0console.info(uri);
// Here we a URL with a gateway that we can look at in the browserconst url = await storage.resolveScheme(uri);// This will log a URL like https://ipfs.thirdwebcdn.com/ipfs/QmWgbcjKWCXhaLzMz4gNBxQpAHktQK6MkLvBkKXbsoWEEy/0console.info(url);
// You can also download the data from the uriconst data = await storage.downloadJSON(uri);