在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:komputing/ipfs-api-kotlin开源软件地址:https://github.com/komputing/ipfs-api-kotlin开源编程语言:Kotlin 100.0%开源软件介绍:IPFS API for kotlin to access a IPFS node via httpGet itYou can get the artifact via jitpack - here you see how to use with gradle - for other build systems have a look here repositories {
maven { url "https://jitpack.io" }
} dependencies {
implementation 'com.github.ligi:ipfs-api-kotlin:$current_version'
} Use it with kotlinadd a stringval multihash = LocalIPFS().add.string("test-string").Hash get a stringval content = LocalIPFS().get.cat(multihash) get commit from versionval commit = LocalIPFS().info.version()?.Commit 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. Apps that use this libraryPlease send a message or even PR if you write/find an app that also uses this library. DependenciesWe depend on okhttp and moshi which play well together with okio LicenseMIT |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论