Skip to content

How do I connect to the public IPFS gateway of Infura instead of using a local daemon? #115

@ghost

Description

Infura specifies these two IPFS endpoints:
IPFS Gateway: https://ipfs.infura.io/ipfs/
IPFS API: https://ipfs.infura.io:5001/api/

What exactly do I need to change in the IPFS instance declaration (IPFS ipfs = new IPFS("/ip4/127.0.0.1/tcp/5001");) to add and get files from the Infura public gateway? I cannot use a local node that needs to constantly be running, since it will be a deployed application...I have tried many approaches but none have worked, and I cannot find ANY examples of this being done in Java. All help is appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions