Elixir SDK for the antd daemon — the gateway to the Autonomi decentralized network.
This module provides convenience delegates to Antd.Client so you can call
functions directly after creating a client:
client = Antd.Client.new()
{:ok, health} = Antd.health(client)All functions return {:ok, result} or {:error, exception}.
Bang variants (e.g. health!/1) raise on error.
Naming convention
Private = unqualified verb. Public = _public suffix. See Antd.Client
for full details.
Quick Start
client = Antd.Client.new()
# Store public data
{:ok, result} = Antd.data_put_public(client, "Hello, Autonomi!")
IO.puts("Stored at #{result.address}")
# Retrieve data
{:ok, data} = Antd.data_get_public(client, result.address)
IO.puts("Retrieved: #{data}")