API/SDK Uploads
Please refer to the code guides below showing how you can migrate your exising NFT.Storage code to using the Pinata API.We are currently rewriting our SDK to make uploads outside of readable streams much easier, please stay tunned!
Uploading Blob or File Objects
Uploading a Directory
Uploading NFT Metadata
Migrating Existing Pins
To get started, make sure you’ve signed up for Pinata. Pinata makes it easy to move between IPFS services, but you’ll need a paid plan in order to migrate. Next, you’ll need to know how you access your old NFT.Storage content. Since the news broke, the old interface has been moved toclassic.nft.storage
. You’ll want to sign in there. Once you’re signed in, you’ll need to create an API key, if you haven’t previously created one. Click the API Keys button in the top navigation.
- Pinata will make a
GET
request to find all the CIDs pinned to your NFT.Storage account - Pinata will then import all of those CIDs into a queue
- Pinata will send you an email if we were able to add the CIDs to the queue or we’ll send you an error email if there was a problem
- Pinata will begin the process of searching the IPFS network and pinning these files to your account
- You can monitor the progress by going to the Files Manager and paying attention to the Pin By CID queue