Antd.PaymentMode (antd v0.4.1)

Copy Markdown View Source

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.

Summary

Functions

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

Types

t()

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

Functions

to_wire(atom)

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

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