Kotlin
Install
dependencies {
implementation("com.autonomi:antd-kotlin:0.1.0")
}Connect to the daemon
import com.autonomi.sdk.*
import kotlinx.coroutines.runBlocking
fun main() = runBlocking {
val client = AntdClient.createRest("http://localhost:8082")
val status = client.health()
println(status.network)
client.close()
}Store and retrieve data
Type mappings
Autonomi type
Kotlin type
Error handling
Full API reference
Last updated