# `Antd.PaymentMode`
[🔗](https://gitlab.com/autonomi/ant-sdk/-/tree/main/antd-elixir/blob/main/lib/antd/models.ex#L1)

Payment-batching strategy for uploads.

* `:auto`   — server picks (merkle for 64+ chunks, single otherwise).
* `:merkle` — force merkle-batch (saves gas, min 2 chunks).
* `:single` — force per-chunk payments (works for any chunk count).

The atom is serialized to the wire string at the request boundary; the
empty wire value is treated as `"auto"` by the daemon so older clients
that omit the field stay compatible.

# `t`

```elixir
@type t() :: :auto | :merkle | :single
```

# `to_wire`

```elixir
@spec to_wire(t() | nil) :: String.t()
```

Serialize a `t:t/0` atom to the wire string the daemon expects.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
