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

Sign up for a free account

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

$5000 - Best Overall

Awarded to the best app displaying a usecase for Pinata. Can qualify by using either the Files API or IPFS API.

$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 - Proof of Personhood Credentials

Awarded to the best app that uses Pinata to help assist in creating a PPC solution. Can qualify by using either the Files API or IPFS 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

Need Help?

Support is just a click away!

Steve Simkins

Head of Developer Relations

Email: [email protected]


Lindsey Mazy

Senior Community & Marketing Specialist

Email: [email protected]