BSV.Tokens.Script.Stas3Fields (bsv_sdk v2.0.1)

Copy Markdown View Source

Fields extracted from a STAS 3.0 locking script.

action_data_parsed carries the legacy {:swap, swap_fields()} / {:custom, bytes} form (61-byte projection of the swap descriptor, no recursive next). For the full STAS 3.0 v0.1 ยง6.3 recursive swap descriptor โ€” including any next chain โ€” see swap_descriptor.

Summary

Types

t()

@type t() :: %BSV.Tokens.Script.Stas3Fields{
  action_data_parsed: BSV.Tokens.ActionData.t() | nil,
  action_data_raw: binary() | nil,
  flags: binary(),
  frozen: boolean(),
  optional_data: [binary()],
  owner: <<_::160>>,
  redemption: <<_::160>>,
  service_fields: [binary()],
  swap_descriptor: BSV.Tokens.SwapDescriptor.t() | nil
}