Skip to content

Commit 7275857

Browse files
committed
Adapt to LocalIPFS and mention InfuraIPFS
1 parent bb07385 commit 7275857

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,21 @@ dependencies {
2222

2323
### add a string
2424
```kotlin
25-
val multihash = IPFS().add.string("test-string").Hash
25+
val multihash = LocalIPFS().add.string("test-string").Hash
2626
```
2727

2828
### get a string
2929
```kotlin
30-
val content = IPFS().get.cat(multihash)
30+
val content = LocalIPFS().get.cat(multihash)
3131
```
3232

3333
### get commit from version
3434
```kotlin
35-
val commit = IPFS().info.version().Commit
35+
val commit = LocalIPFS().info.version().Commit
3636
```
3737

38+
Note: when you are not running a local IPFS daemon you can also use infura just replace LocalIPFS() with InfuraIPFS() or write your own configuration.
39+
3840
# Apps that use this library
3941

4042
* [IPFSDroid](http://github.com/ligi/IPFSDroid)

0 commit comments

Comments
 (0)