File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments