Questions tagged [ipfs]

IPFS (the InterPlanetary File System) is a new hypermedia distribution protocol, addressed by content and identities. IPFS enables the creation of completely distributed applications. It aims to make the web faster, safer, and more open.

Filter by
Sorted by
Tagged with
1 vote
1 answer
2k views

Encrypting/Decrypting data on IPFS using Ethereum Public/Private key?

I would like my app to connect to a Web3 wallet, store encrypted data on IPFS, then retrieve that data and decrypt it (without the user exposing their private key to my app). Is this possible? If not, ...
2 votes
1 answer
647 views

Ethereum IPFS Integration

By now i have developed few basic example apps to execute Ethereum contracts using truffle based web application in a private blockchain. I have setup an IPFS node in my local. Able to upload files ...
0 votes
0 answers
10 views

Is it possible to use cors or something similar to reject all API calls not from a particular ENS Domain, Unstoppable Domain, or IPFS hash?

I love decentralized domain projects. I have worked with Unstoppable Domains, ENS domains, Handshake domains, and even just simple IPNS domains and IPFS hashes. The domain name system used by web2.0 ...
0 votes
1 answer
649 views

Implement Web3 and IPFS on server side (backend)

How do I implement Web3 and IPFS on the server side (backend)? I am able to implement on client-side (using web3.js and ipfs.js in HTML script tags) for localhost. However, it fails when I run the ...
0 votes
0 answers
16 views

Can not view my listed NFTS on my NFT Marketplace frontend

I followed alchemy road to web3 tutorial on NFT market place. After listing the NFTs and then go to the market place to view my listed NFTs I get a has been blocked by CORS policy error. I used "...
1 vote
4 answers
37 views

How to upload URL to IPFS API

I'm working on a project where I wish to upload some images to IPFS, but the issue is I have the URL for the images, is there any way to upload the image using the URL? Like I was searching for ways ...
0 votes
1 answer
22 views

my nft image not showing in opensea testnet

when ever i mint an nft with my frontend dapp and check it on opensea i will just see the name without the nft image. here is my deploy.js file. this is the tutorial i am following https://dev.to/...
1 vote
1 answer
757 views

Upload metadata as JSON to IPFS

I am uploading NFT-metadata files to the IPFS using Pinata-API and axios: var metadata = { "title": "Asset Metadata", "type": "object", &...
0 votes
4 answers
3k views

How do I implement buffer/readable stream in order to add a file to IPFS?

I'm trying to upload a file from my directory to IPFS. Below is what they require from API: const files = [ { path: '/tmp/myfile.txt', content: (Buffer or Readable stream) } ] ipfs....
0 votes
1 answer
16 views

setState is not working

This is a function where I try to pin an NFT metadata on IPFS and then store the URL in a state variable called tokenUrl. Once the pinning process is done, I need my related state variable to be ...
1 vote
2 answers
854 views

DApp using IPFS Ganache and MetaMask

I am following a tutorial (hosted by dappuniversity) on youtube regarding DApps using IPFS. I have done exactly everything as mentioned in the tutorial but i get this errors: GET https://ipfs.io/ipfs/...
2 votes
2 answers
2k views

IPFS versioning - How to get all files from the IPFS key?

Based on the below code, im able to add a file**(dataobj.txt --QmUUHKjR5ZdrrYmxpXyPrYP3eMyhv9FnRKo1Duv9stzmmw)** and publish a file and then assign to the key "myIPFSKey". Step 1: ipfs add -r ipfs/...
0 votes
1 answer
312 views

How to pin a file to Pinata and also pin json to Pinata using next 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 ...
2 votes
1 answer
388 views

read data from ipfs in a solidity contract

Is there a way to read data from an IPFS address inside of a solidity contract? I found questions about writing to ipfs, which isn't what solidity should be used for, but I can't find anything ...
109 votes
6 answers
53k views

What is the difference between Swarm and IPFS?

IPFS seems a little slow on existing dapps. will Swarm load content more quickly? Also- is there a roadmap for swarm?
0 votes
4 answers
264 views

Ethereum vs InterPlanetary

I've been reading about Ethereum and it's fundamentals for a while now. I wonder what is difference between Ethereum and InterPlanetary File System ?
1 vote
1 answer
269 views

IPFS add not working

I am working on a dapp and wish to upload a file on ipfs and retrieve its hash to be used further. The concerned code is as follows const ipfsClient = require(‘ipfs-http-client’) const ipfs = ...
1 vote
1 answer
22 views

Infura is not working with Nader Dabit tutorial for NFT Marketplace. How can I use Infura again?

I was trying to build an NFT Marketplace demo using Nader Dabit tutorial. Whenever I try to click on 'Create an NFT' button after file submission, I run into an Unhandled Runtime Error: TypeError: ...
0 votes
0 answers
33 views

IPFS public gateway problem

I put a 10sec video in my IPFS local node ( after ipfs daemon command I've imported the file in my IPFS desktop . now I can see the file on the local host but I cannot see the file on public gateway ( ...
0 votes
1 answer
520 views

IPFS dapp hosting

I have uploaded the dapp frontend folder along with contracts json files on the IPFS using ipfs add <path> ipfs name publish <hash> commands. I am running Ganache for in-memory virtual ...
1 vote
1 answer
901 views

Error uploading file to IPFS: HTTPError: project id required

Currently making a rudimentary DApp for posting chats, similar to twitter except built on a smart contract. I am using hardhat and running my app on localhost. When creating a profile I want users to ...
0 votes
1 answer
238 views

Ethereum & IPFS Storage Question

Etherum vs IPFS for Long Terms Storage of Critical document files? Storing high priority files on the blockchain. I am also writing a smart contract for the files on Etherum. I have concerns about ...
1 vote
1 answer
2k views

Linking IPFS in ERC-721

Im currently onto developing my own NFT. It will be only one NFT in the contract with the ID "0". First of all, do you see problems in adding the URI to the NFT after minting it (it has to ...
0 votes
1 answer
748 views

ipfs.files.add(Buffer) function causing TypeError: Cannot read property 'add' of undefined

I am trying to upload an image to ipfs using ipfs.files.add() function but it is causing me this error Uncaught TypeError: Cannot read property 'add' of undefined at App.onSubmit (App.js:70) at ...
0 votes
1 answer
621 views

Storing hash on blockchain (hash of image stored on ipfs)

I am creating a dapp using react to store image on ipfs and the corresponding hash on blockchain. The purpose of storing hash on blockchain is timestamping, proof of ownership wtc and i wish to ...
0 votes
1 answer
27 views

Unpin NFT metadata from IPFS from react

I am minting NFT's and storing their metadata in the Infura IPFS. Is there a way to unpin the NFT from the IPFS from react?
0 votes
1 answer
988 views

How to store a javascript animation as NFT

I have a generative "art" animation made with the JavaScript p5js library and I would like to upload the output of this perpetual infinite animation on pinata or another Ipfs service and ...
0 votes
0 answers
29 views

How to setup metadata on IPFS for newly generated metadata?

I've been studying on how devs usually go about handling the metadata for NFT collections and from what I've seen, this reply on this post sums up the whole process: Best way to set metadata in ERC721 ...
2 votes
2 answers
1k views

IPFS File upload

I am working on an idea of uploading a file on IPFS. But the requirement is, the uploaded file should be available for view only to the intended group of people. The code to upload the file is in JS. ...
0 votes
0 answers
15 views

Choosing the best tool to upload NFT metadata on IPFS

I am working on an NFT creation user interface. I have recently encountered a crucial situation where I need to choose between the available tools to utilize the most efficient one to host my NFT ...
0 votes
1 answer
48 views

What does pinning mean in Pinata and how is it different from Filecoin?

I recently came across pinata that is used for pinning the nfts and uses IPFS in the backend. My question is: what does that pinning actually mean? And if it is keeping pieces of the data in multiple ...
0 votes
1 answer
152 views

What is NFT token metadata or URI?

I want to develop a user interface which accepts an image file from the user, and a ERC1155 smart contract capable of minting tokens backed by the uploaded image. In other words, I need my ERC1155 ...
0 votes
1 answer
24 views

Send project id from IPFS Infura Java Android

In this tutorial show how in the following code how to connect to the infura project using android devices, but today this code shows the error "project id is required" Is there a way to ...
1 vote
2 answers
3k views

Uploading files on IPFS Infura

I am trying to make a dapp to upload files on IPFS Infura. I am using IpfsHttpClient in web browser by including the script <script src="https://unpkg.com/ipfs-http-client/dist/index.min.js">&...
0 votes
1 answer
311 views

NFT image not able display in matemask (only grey image)

I just created a NFT and deployed it on Rinkeby to test it. I'm able to add my NFTs to wallets but I don't see the image I provided when minted it. What could be the reason? i ve json and metadata as ...
5 votes
2 answers
2k views

How to use a placeholder image during minting, and then only updating metadata with the actual URI after minting?

As per the title. I want to be able to have a placeholder image for my NFTs, something like this: https://opensea.io/collection/thealcabones Then subsequently, after launch, I then update the metadata....
1 vote
2 answers
440 views

Pin file to IPFS using pinata

I'm using pinata and trying to pin some files to ipfs. These files are coming from user input and not readed from the fs. Having this code: export const deployFile = async ( file: Express.Multer....
0 votes
2 answers
84 views

How to fetch IPFS data on Polygon Smart contract?

On a project in solidity, on Polygon/Matic, I need to fetch data from IPFS. So, an Oracle is mandatory, and I found 2 possible oracles: Provable (old Oraclize) seems do not accept 2nd layer Polygon. =&...
1 vote
1 answer
344 views

Using IPFS storage with ERC-1155 and id substitution

Is there a way to use the {id} substitution in ERC-1155 with IPFS storage? I'd like to host the metadata on ipfs and have the uri function return a link to it. A working example would be really ...
0 votes
1 answer
51 views

correct solidity type for a cid?

Im writing a function in solidity where the user enters a CID from an IPFS link, which looks like: QmcQvCyLAncpEzvmYtKfvVPVayGqFvTQrYpUpPAJeoXGke So far im using string type, and it works. Which is ...
0 votes
0 answers
41 views

Java IPFS Infura error 401 - Unauthorized

I`m tring to connect with ipfs infura, but send me the response code 401 I created an IPFS project and I have my projectId and secretKey protected void onCreate(Bundle savedInstanceState) { ...
1 vote
2 answers
217 views

How can I fix an connection timeout error when attempting to use the ipfs-http-client javascript module to upload to ipfs using a public gateway

I am currently trying to learn to use ipfs in conjunction with ethereum to create web applications. To help gain an understanding of how ipfs works, I am creating a simple React application that ...
0 votes
1 answer
3 views

IPFS connection not working with aragonOSx sdk

I couldn't get an ipfs connection with aragonOSx SDK (https://github.com/aragon/sdk). Error: Could not pin the metadata on IPFS
0 votes
0 answers
34 views

Problem to Connect to infura with Java Android

I downloaded the IPFS library as the following article But it doesn't show how to pass the credentials, like projectid and secretid Follow the article, show me this error "android_getaddrinfo ...
0 votes
2 answers
111 views

Can a contract write to IPFS?

I'm accustomed to IPFS as a store of data for the metadata of NFTs. But is it possible for a smart contract to write to ipfs? In my use case, I would like my NFT to pull its metadata, alter a few ...
1 vote
2 answers
805 views

Upload a full directory to IPFS using ipfs (js-ipfs-http-client)

I want to upload a directory to ipfs on my browser using (js-ipfs-http-client) module. I found this old issue. https://github.com/ipfs/js-ipfs/issues/277 So I decided to use recursive way to add files ...
0 votes
1 answer
17 views

Creating a smart contract with ipfs

I created a site with the help of ipfs, my goal is to create a smart contract with the ipfs CID of this site. but i have no idea about this, can anyone help?
0 votes
1 answer
54 views

Ethereum Validators - Can IPFS/Arweave/etc. Host Rocket Pool's Minipool?

Is it possible to host a Rocket Pool Minipool Ethereum validator on IPFS, Arweave, or etc.? The IPFS/Arweave data would be encrypted to not expose the ETH Validator's private key. IPFS and Arweave are ...
0 votes
1 answer
32 views

Complexity of IPFS files

I'm fairly new to IPFS and I was wondering how complex the files that you host in IPFS can be? Can you keep an event listener continually listening for input without downtime? Can you retrieve ...
1 vote
1 answer
302 views

No output when writing data to IPFS and storing its hash through Solidity

So I am using truffle. Following from Creating a form in IPFS for users to enter data [check the code in answer], doing some changes: Contract name - IpfsContract.sol test.js uses the following JSON ...

1
2 3 4 5
7