Questions tagged [ipfs]

IPFS (InterPlanetary File System) is a distributed/P2P content and identity-addressed hypermedia distribution protocol.

IPFS logo

The InterPlanetary File System is a hypermedia distribution protocol, addressed by content and identities. It enables the creation of completely distributed applications.

IPFS aims to make the web faster, safer, and more open by connecting all computing devices with the same system of files.

Latest release of IPFS is v0.9.0. Read more about the latest release at https://github.com/ipfs/go-ipfs/releases

IPFS official documentation: https://docs.ipfs.io/

772 questions
4
votes
2 answers

Unable to access process variable in Vue3JS Vite project

I am creating a vue3 application (created with Vite) that interacts with a smart contract written in Solidity and stored on Ropsten. Therefore I am using web3js to interact with my smart contracts and also web3.storage in order to store some images…
OkOutside84
  • 57
  • 2
  • 5
4
votes
1 answer

IPFS uri format: https://ipfs.io/ipfs/ vs. ipfs://?

Here is my test tokenURI.json file w/ the imageURI I pass to my token contract.setTokenURI(): { "attributes": [ { "trait_type": "location", "value": "West Awesomeville" }, { "display_type": "date", "trait_type":…
JDOaktown
  • 4,262
  • 7
  • 37
  • 52
4
votes
2 answers

How to check that an ipfs hash is an image/video/.. in React Js?

I need to use the ipfs hash to find out whether the file is an image or a video so that i can use it to either show the image/play the video. Couldn't find any useful resource on this one. What should be done?
4
votes
0 answers

Fastest way to retrieve a folder's content from IPFS

I'm trying to find a way to get all the contents of a folder within the least amount of time possible. I've tried several things but they none of them were satisfying. I want to mention that the data I'm trying to retrieve is very small (usually the…
Beter
  • 314
  • 4
  • 20
4
votes
1 answer

How to disable content security policy in react

I have searched and I have seen many articles saying how the content security policy is for my benefit and it secures my application, but why is it so frustrating. Currently this is my meta tag and my content security policy settings
ccurves
  • 633
  • 2
  • 9
  • 18
4
votes
1 answer

IPFS Angular11 ipfs-http-client new IpfsHttpClient = Error: export 'AbortController', Multiaddr

Hello I have issue with ipsf-http-client using angular. On return new IpfsHttpClient() I have missing Multiaddr, anySignal, AbortController and other exports. Also I have error: This expression is not constructable,…
Uland Nimblehoof
  • 862
  • 17
  • 38
4
votes
0 answers

Chainlink Large Responses

I run this code from the chainlink documentation but didn't get the image. function requestBytes() public returns (bytes32 requestId) { address oracle = "0xc57B33452b4F7BB189bB5AfaE9cc4aBa1f7a4FD8"; bytes32 specId =…
yamna iftikhar
  • 103
  • 1
  • 5
4
votes
2 answers

Ipfs-http-client isn't a recognized Module in my react app

I am trying to use the ipfs package inside my react app but it won't recognize the module when I run. sudo npm start I install the module with sudo npm install -g --unsafe-perm ipfs-http-client This installs with the following output >…
Andy Christie
  • 71
  • 1
  • 4
4
votes
1 answer

ERC721 - Authenticity of metadata assets mentioned in a tokenURI

How do we prove the authenticity of the metadata of an NFT asset? According to the ERC721 spec, to get the metadata of an NFT asset, we need to go to the URI mentioned in the tokenURI function. What happens if this metadata is on a centralized…
4
votes
2 answers

How can I update data on IPFS

I am storing user information on IPFS in JSON object format and then storing that file hash on blockchain. I want to update that JSON object array every time I add a new user object. How can I achieve this? I'm using Etherium Blockchain and ReactJS
4
votes
2 answers

Retrive JPG image stored on IPFS using Infura API and ipfs-http-client in React

I uploaded a jpg image on ipfs using infura API and ipfs-http-client. The file was taken from input with type=file. The event listner was onchange. // imports const IpfsHttpClient = require("ipfs-http-client"); const ipfsC = IpfsHttpClient({ host:…
Rahul Bera
  • 65
  • 2
  • 6
4
votes
2 answers

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 and get only one hash for…
yehia tarek
  • 65
  • 2
  • 12
4
votes
2 answers

Base58 javascript implementation

I am using IPFS-multihash method to store IPFS hash in smart contracts. For that I need to decode base58 format: QmaozNR7DZHQK1ZcU9p7QdrshMvXqWK6gpu5rmrkPdT3L4 to binary(as…
ak07_
  • 95
  • 1
  • 8
4
votes
2 answers

IPFS- How to send message from a peer to another?

I am looking for a solution to send a message from an IPFS peer to another in the github doc I found this code that connect a peer to another one : ipfs.swarm.connect(addr, function (err) { if (err) { throw err } // if no err is present,…
maroodb
  • 1,026
  • 2
  • 16
  • 28
4
votes
3 answers

How to download file from IPFS in Python

I am using a scenario where uploading encrypted file to the ipfs, now I wanted it to download and then decrypt. Is there any way to download file using python?
Deepthi Kr
  • 53
  • 1
  • 4