DEV Community

foxgem
foxgem

Posted on

Quick IPFS

Concepts

  • IPFS ! = Blockchain
    • Blockchain serves on-chain data
    • IPFS serves off-chain data
    • IPFS provides an option of saving big volume datas for blockchain.
  • IPFS ! = Filecoin
    • IPFS focuses on addressing, which means it can find the location the content, but it can't guarantee that content is available.
    • Filecoin which focuses on storage is similar to a decentralized cloud drive.
    • They are complementary.
  • Contents on public IPFS are always accessible as long as you can get the addresses.
    • Setting up a private IPFS is possible, but meaningless.
  • How to use:
    1. add file, a cid will be returned
    2. use the cid to access the file
  • Typical scenarios
    • NFT Metadata
    • Off-Chain data

Content Addressing

Pinning Services

  • "pin" is "save" , happening on one or more nodes.
  • Files that not pinned are only in cache and will be removed in future.
  • It is impossible to force a third party node to perform a "pin".
  • In addition to your own nodes, third party services are also available.
  • Typical pinning services:
    • paid
      • infura
      • pinata
      • morails
    • free
      • nft.storage

References

Top comments (1)

Collapse
 
juyuancai profile image
juyuancai

Hi, when you use IPFS to publish file, do you need to purchase a VPS also with pin service like pinata pin service? Now we have a better solution called Foggie. With Foggie , you can get a 2C4G VPS with pin service together with only the same price as pinata. You will also get much larger bandwith to 4T. Also , when you use it, you can get token and NFT rewards. Here is the link: https://foggie.fogworks.io/?pcode=uZVcLL&cc=1008#/fogworks