pinata is a non-fungible token media management platform and API.
Questions tagged [pinata]
30 questions
0
votes
0 answers
Issue with constructor initialization in Typescript
Pinata SDK: https://www.npmjs.com/package/@pinata/sdk
I trying to use the Pinata SDK in one of the packages of a Nx Typescript monorepo project. I installed the SDK with: yarn add @pinata/sdk -W. Now using it in a package A file:…

NewToCode
- 174
- 8
0
votes
1 answer
After I run "node index.js" instead of a link to the picture, I get only "https://gateway.pinata.cloud/ipfs/${result.IpfsHash}" without IpfsHash
There is an index.js file that allows you to retrieve a link to an image stored in the pinata.
Here is the code:
const pinataSDK = require('@pinata/sdk');
require('dotenv').config();
const fs = require('fs');
const pinata = new…

aleeeexcool
- 1
- 1
0
votes
0 answers
How to pin (store) files in ipfs using node js?
i want to store files of type image in ipfs with node js without using any gateway like pinata , i have tried to install "ipfs-http-client" and "ipfs-core" but i always get an error Module not found for these two libraries . I've installed many…

Ghost
- 318
- 2
- 8
0
votes
1 answer
Uncaught (in promise) AxiosError {message: 'Request failed with status code 400', name: 'AxiosError', code: 'ERR_BAD_REQUEST
I've followed the alchemy NFT marketplace course (https://www.youtube.com/watch?v=y6JfVdcJh1k&t=262s and https://github.com/alchemyplatform/RTW3-Week7-NFT-Marketplace) successfully but somehow the app stopped working and I am now getting an axis…

Weisel2095
- 61
- 3
0
votes
0 answers
Multiple console logs and functions running more than once with NextJS. NFT minting DAPP using Pinata for IPFS integration
I am building an NFT minting DAPP that allows a user to connect their crypto wallet and mint one of 10,000 NFT's stored on IPFS through Pinata. I am having several problems but I believe they are all related to one issue that I cannot figure out. To…

Mac
- 35
- 5
0
votes
1 answer
How do i upload a folder containing metadata to pinata using a script in python-brownie?
I've been trying for the past 24 hours but can't find a solution.
This is the code:
import os
from pathlib import Path
import requests
PINATA_BASE_URL = "https://api.pinata.cloud/"
endpoint = "pinning/pinFileToIPFS"
# Change this filepath
filepath…

Tulli
- 19
- 3
0
votes
1 answer
Uploaded folder of images to Pinata (IPFS) but the URL structure is coming back strange
Im trying to create some NFTs. I've done this before and im familiar with the process but never encountered this issue before. I uploaded a folder of images, so I can include the CID in my metadata (.JSON files). For some reason when I click on…

TOX
- 45
- 1
- 11
0
votes
0 answers
How to upload formdata file to Pinata?
I am trying to upload a base64 file to Pinata, but my Formdata seems malformed for unknown reason.
I create the formdata in index.js and send to the NextJS api as so:
// file is a base64 string
_createNFTFormDataFile = async (name, description,…

Pm Rivière
- 191
- 2
- 13
0
votes
1 answer
Pinning a folder to Pinata (IPFS) using PHP doesn't work but individual files do
I have a script that uploads files to Pinata using cURL & PHP, it works great. But now im trying to pin an entire folder of files. I followed the little instructions they give but get -
[error] => Invalid request…

Ryan D
- 741
- 1
- 11
- 29
0
votes
1 answer
How to pin file to Pinata and also pin json to Pinata using react js
I am just wandering arround to find a way to pin the file to Pinata
Though I have a method to do it from server side but don't know how to do it from client side like React.js:
This is server side method
async function storeImages(imagesFilePath)…

ShoaibShebi
- 59
- 1
- 5
0
votes
2 answers
Pinata: How to add files to an existing folder
I found out a way to add files to an existing folder with IPFS thanks to this question:
IPFS: How to add a file to an existing folder?
but I was wondering if there is a similar solution using Pinata service?

Edreldor
- 11
- 1
- 4
0
votes
2 answers
Some NFT images minted from Candy Machine V2 are not displayed
I created Candy Machine and I noticed that some NFT images are not displayed neither on wallet or solscan. Metadata and images were uploaded and pinned on Pinata using Candy Machine upload command which finished successfully.
Here is an example of…

Void
- 111
- 4
0
votes
0 answers
net::ERR_SSL_PROTOCOL_ERROR uploading image to pinata
I created a next.js app to upload json
try {
const url = `https://api.pinata.cloud/pinning/pinFileToIPFS`;
const fileRes = await axios.post(url, formData, {
maxBodyLength: Infinity,
headers: {
…

Yilmaz
- 35,338
- 10
- 157
- 202
-1
votes
1 answer
Promise within a function
This code does not execute the promise of testAuthentication or pinFileToIPFS and i am curious if this is a node concept i am not familiar of.
function uploadToPinata(filename) {
const pinata = pinataSDK(process.env.PINATA_KEY,…

Jesse Jacob
- 1
- 2
-3
votes
1 answer
NextJS: Access to XMLHttpRequest from origin blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource
I was working on a NFT marketplace app using NextJS as frontend and Solidity as backend. When I tried to sell an NFT using the frontend UI, I encountered this error:
Access to XMLHttpRequest at…

HelloDarkWorld
- 103
- 4