Skip to main content
Please view the third-party content disclaimer here.
Storing large files directly on the Polygon blockchain is expensive and limited by block size. IPFS (InterPlanetary File System) solves this by storing files off-chain in a distributed network, while your contract stores only a compact content identifier (CID). IPFS uses content addressing: each file is identified by a cryptographic hash of its contents, not its location. This guarantees that a CID always refers to the same data, regardless of where it is stored. Persistent storage is maintained by pinning services and providers such as Filecoin and Crust. For more details, see the IPFS documentation.

Example projects

The projects below may reference test networks that have been deprecated. Replace network details with the ones listed here.
  1. Mint an NFT on Polygon with IPFS using scaffold-eth: simple-nft-example.
  2. Build a full-stack Web3 app with Next.js, Polygon, Solidity, The Graph, IPFS, and Hardhat: The Complete Guide to Full Stack Web3 Development.