DIF Hackathon 2024
Everything you need to start hacking with Pinata
Welcome to the Pinata DIF Hackathon cheat sheet! This doc will have everything you need to know about:
- Getting started with Pinata
- Prizes available and how to qualify
- Tutorials and guides for different use cases
What is Pinata?
Pinata provides private and public file solutions for developers, making it easy to upload a file in your app and retrieve it securely. Additionally, Pinata is the largest IPFS provider, helping countless developers scale their decentralized applications. Whether you need verifiable file storage or a peer to peer solution, Pinata has you covered.
Private Files
By using the SDK, uploading private files is just one line of code.
const { cid } = await pinata.upload.file(file)
Accessing private files is just as easy!
const signedUrl = await pinata.gateways.createSignedURL({
cid: cid, // CID from our upload
expires: 30, // How many seconds the link is valid for
})
Be sure to follow the quickstart below to start using Pinata in your app!
IPFS Files
Using IPFS is just as easy, and only requires a few minor changes by using the IPFS SDK instead of the Files SDK.
import { PinataSDK } from "pinata-web3"
const upload = await pinata.upload.file(file)
const ipfsUrl = await pinata.gateways.convert(upload.IpfsHash)
Follow the IPFS quickstart for more info!
Quickstart
Almost all of our features are on the free account, but if you find yourself limited and need a paid account contact [email protected]
Prizes
$1500 - Verifiable File Storage
Awarded to the best app that accesses private files by verifying a credential. Can qualify by using the Files API.
$1500 - Identity-Based Access Controls For Private Files
Awarded to the best app that uses Pinata to access private files based on an identity credntial such as an Ethereum address. Can qualify by using the Files API.
5x $100 - Honorable Mentions
5 Awards given to honorable mentions for submissions to other challenges.
Tutorials
How To Build An AI-Powered App To Chat With Your CSVs
How to Update an NFT Image using Hot Swaps
How to Build an App that Signs & Verifies Content
How to Mint NFTs with Foundry, Viem, and Pinata
How to Encrypt and Decrypt Files on IPFS Using Lit Protocol and Pinata
More Tutorials
Need Help?
Support is just a click away!