Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

312
Visualizações
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. Thanks!

Example IPFS link: ipfs://bafybeignop35wemk2eu2z34qurwusjeuri6unpyzrzeetmxs4hrwksq7dq/?filename=tokenURI.json

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

That function will not work through the IPFS protocol ipfs://. The quickest and dirtiest way to get that JSON file is to use a trusted public gateway.

You'll find the list of public gateways via the link below.
https://ipfs.github.io/public-gateway-checker/

The most important bit of information in that link is your CID that might refer to a folder or a single file. You can link to your JSON file with that CID using any of these public gateways.

e.g.; https://ipfs.io/ipfs/bafybeignop35wemk2eu2z34qurwusjeuri6unpyzrzeetmxs4hrwksq7dq/?filename=tokenURI.json

Please note that these gateways are not there to use in any production environment. They usually come with restrictions such as rate-limiting.

You can read more here:
https://docs.ipfs.io/concepts/ipfs-gateway/#can-websites-rely-on-the-ipfs-io-gateway-for-hosting

I also recommend you this article they have, you'll better understand the whole concept.
https://docs.ipfs.io/concepts/ipfs-gateway/#gateway-providers

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda