Java-IPFS-Daemon: Start an IPFS daemon with pure Java

Java-IPFS-Daemon v1.0

Maven dependency

Add the following sections to your pom.xml

<repositories>
 <repository>
 <id>RHazDev</id>
 <url>https://raw.github.com/RHazDev/RHaz-Maven/</url>
 </repository>
 </repositories>
 <dependencies>
 <dependency>
 <groupId>fr.rhaz.ipfs</groupId>
 <artifactId>daemon</artifactId>
 <version>1.0</version>
 <scope>compile</scope> <!-- If you want to shade it -->
 </dependency>
 </dependencies>

Usage

Initialize the IPFS daemon and the API

Core core = new Core();

core.binaries(); // Download, extract, load binaries

core.start(); // Init and start the daemon

core.attach(); // Attach the API

IPFS ipfs = core.getIPFS(); // Get the API object

You can now use the IPFS API

https://github.com/RHazDev/Java-IPFS-Daemon

1 Like

Where is the location of this IPFS node that we are acessing?

Apparently the URL above no longer works - Try https://github.com/RHazDev/IPFS-Daemon