Skip to content

Commit

Permalink
Update IPFS.java
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-tara authored Aug 3, 2022
1 parent 32a2c86 commit c8320f7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/io/ipfs/api/IPFS.java
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,11 @@ public String resolve(Multihash hash) throws IOException {
Map res = (Map) retrieveAndParse("name/resolve?arg=" + hash);
return (String)res.get("Path");
}

public Map resolve(String ipns) throws IOException {
return retrieveAndParse("name/resolve?arg=" + ipns);
}

}

public class DHT {
Expand Down

0 comments on commit c8320f7

Please sign in to comment.