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
3
votes
1 answer

Get token metadata inside the smart-contract for game functions

Context I'm working on my first Game working with a Smart contract and I have some question. On my game I have characters and cards, and both player will duel each other using one character and 10 card each. For that, no issue: All players and cards…
Arthur
  • 4,870
  • 3
  • 32
  • 57
3
votes
2 answers

How can I completely clean IPFS repo?

After running following command, related: How do I unpin and remove all IPFS content from my machine?: # unpin and remove all IPFS content from my machine ipfs pin ls --type recursive | cut -d' ' -f1 | ifne xargs -n1 ipfs pin rm ipfs repo gc Size…
alper
  • 2,919
  • 9
  • 53
  • 102
3
votes
1 answer

Uploading directory to pinata ipfs API

I'm trying to upload a directory of pngs to pinata, but I keep getting this error: {'error': 'Invalid file path: C:\\Users\\myname\\Documents\\Coding Projects\\nft\\art\\reveal\\1.png detected. If you are receiving this, you provided either bad…
frankied003
  • 466
  • 6
  • 26
3
votes
2 answers

I am not able to use ipfs

I want to publish files on ipfs but it's showing me an error. Here is my code... const ipfsClient = require('ipfs-http-client'); const ipfs = ipfsClient({host: 'ipfs.infura.io', port: 5001, protocol: 'https'}); function App() { const [buffer,…
3
votes
0 answers

How to use Cloudflare and how it is different from Pinata

For my IPFS server, I use pinata.cloud and upload my content there. But it is slow and I have heard people say that Cloudflare IPFS are faster. But I couldn't find anything on how to upload to Cloudflare IPFS server instead of Pinata. I might have…
3
votes
1 answer

Is Reading JSON from IPFS impossible?

I'm attempting to get the JSON object from a known IPFS link. When I use a function like $.getJSON() or node-fetch I am greeted with an error telling me I can only use HTTP. I've searched around for hours now and found nothing on this. Example IPFS…
jjreedv
  • 71
  • 2
  • 7
3
votes
2 answers

when IPFS to safari, chrome and firefox mobile and webview?

IPFS status in May 2021 : brave, opera, (chrome + firefox but with addon on desktop) I'm wondering when ipfs will be ported to chrome and safari mobile => especially for webview because those links, won't open in webview or chrome mobile or safari…
Jintor
  • 607
  • 8
  • 32
3
votes
0 answers

Uploading files to IPFS in an Heroku Flask app

Good afternoon, I have troubles with the IPFSHTTPCLIENT library for Python when uploading files to IPFS. It worked when I was running the app on a localhost environment. However, in Heroku, it doesn't, and I guess that it's because of the IP…
Busto
  • 33
  • 3
3
votes
1 answer

How to add multiple files to IPFS in Python?

I am a beginner trying to upload and access data from an IPFS network. I am currently going through a tutorial on the same. This is the code on their site. # upload import requests import json files = { 'fileOne': ('Congrats! This is the first…
S Mishra
  • 33
  • 1
  • 3
3
votes
1 answer

Function to mint ERC-token with every nth-number of like

I need help with a function to reward user with erc777-token as soon as his content (Ipfs-Hash, see the program below) hit n-number of likes (lets say every 100th like), i.e., whenever the 'netLike' counter hits 100, it automatically mints one token…
Xylan
  • 142
  • 2
  • 13
3
votes
3 answers

Import ipfs in TypeScript

Importing and module initialization is generally simple using JavaScript/TypeScript using either require or import. I'm having trouble running the basic example from the JS IPFS website to initialize ipfs. If I follow the general instructions I get…
haleonj
  • 1,438
  • 3
  • 16
  • 30
3
votes
3 answers

IPFS CID Reproducibility

This is perhaps very basic question but I couldn’t find in my search. Assuming the file content doesn’t change even single bit, would IPFS CID never change even if it’s being added/pinned by different users? Would this assumption stay true for…
3
votes
1 answer

Can I use go-ipfs directly in my Go program?

I connect to IPFS via go-ifps-api like in this example: import api "github.com/ipfs/go-ipfs-api" shell := api.NewShell("localhost:5001") cid, err := shell.Add(bytes.NewBufferString("Hello world")) ... err = shell.Get(cid, "hello.txt") …
dimus
  • 8,712
  • 10
  • 45
  • 56
3
votes
0 answers

How to encrypt and store files in IPFS such that only certain people can unencrypt and see the file?

I am setting up a platform whereby data is stored on IPFS and then give access to some (or in some cases all) through a front-end UI. Storing on IPFS is straight forward as is encrypting. First I encrypt the file: gpg --encrypt --recipient…
Philip Rutovitz
  • 327
  • 5
  • 13
3
votes
1 answer

Getting HASH of individual files within folder uploaded to IPFS

When I upload a folder of .jpg files to IPFS, I get the HASH of that folder - which is cool. But is each individual file in that folder also getting hashed? And if so, how do I get the hash of each file? I basically want to be able to upload a whole…
Sirab33
  • 1,247
  • 3
  • 12
  • 27