Skip to main content

Deploying to Pinata

Introductionโ€‹

In this 5 step guide, we'll walk you through how to deploy your Polywrap wrap to Pinata so that other apps could integrate it into their apps!

Table of Contentsโ€‹

Click to expand

What is Pinata?โ€‹

Pinata is building the largest pinning service on IPFS!

Pinata gives users the ability to upload, manage, and share their content whenever, wherever and, with whomever they want.

What you need to get started:โ€‹

Step 1. Clone the polywrap demo projectโ€‹

git clone https://github.com/polywrap/demos.git

Step 2. Git pull metadataโ€‹

Then, we will check out the demo branch with the metafiles already set up:

git pull origin polywrap-metadata

Step 3. Build the wrapโ€‹

Now, we can build the sample wrap with the following commands:

nvm use
yarn
yarn build

Your build folder should be generated now. Copy and paste the ./polywrap.meta.yaml and ./meta files into the build folder.

Step 4. Upload the build folder to Pinataโ€‹

Make sure you signup for a Pinata account.

  • Click "Upload"

Pinata Step 1

  • Click "Folder"

Pinata Step 2

  • Click Select for a folder to upload should be the build folder

Pinata Step 3

  • Give your file or folder a name. Example: Gm-Polywrap

Pinata Step 4

  • Click "Upload" from the alert message

Pinata Step 5

Step 5. Verifying the package on IPFSโ€‹

You will get an IPFS hash!

  • Click the name of the folder

Pinata Step 6

This will lead you to IPFS link: https://gateway.pinata.cloud/ipfs/QmVtFE8ScFUv6b4vUrfrNsEGuUunF4rFckjaRcDxb6xayq

Now that you have the IPFS hash located in the CID column in the pinata manager, you can use it as a value in the URI property of your Polywrap queries to access the functions in this wrap.

๐ŸŽ‰ Congratulations ๐ŸŽ‰ on deploying to Pinata!