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

The whole close group's view of where a pointer stands
(`pointer_finality`). Check it before relying on a transfer: only
`status: :final` means it is beyond dispute.

`status` is one of:

  * `:open` — no peer that answered holds a final state. `counter` is the
    counter a read would return, or `nil` if no state is corroborated.
  * `:settling` — one final state (`state`), not yet held by a majority.
  * `:unconfirmed` — one final state held by a majority, but not every peer
    of the group answered, so a rival could still exist.
  * `:final` — one final state, held by a majority, every peer answered,
    no rival seen. `transferred_to` is set when it is a transfer.
  * `:forked` — the owner signed two or more different final states.
    `states` lists them, most-held first; `majority` is the one a majority
    holds, which reads return, or `nil`.
  * `{:unknown, status}` — a status this SDK does not know yet, as the
    daemon sent it.

Unset values are `nil` on both transports: REST sends `null`, gRPC an
empty string or an absent message.

# `status`

```elixir
@type status() ::
  :open | :settling | :unconfirmed | :final | :forked | {:unknown, String.t()}
```

# `t`

```elixir
@type t() :: %Antd.PointerFinality{
  address: String.t(),
  answered: non_neg_integer(),
  counter: non_neg_integer() | nil,
  group: non_neg_integer(),
  majority: Antd.PointerFinalState.t() | nil,
  state: Antd.PointerFinalState.t() | nil,
  states: [Antd.PointerFinalState.t()],
  status: status(),
  transferred_to: String.t() | nil
}
```

# `final?`

```elixir
@spec final?(t()) :: boolean()
```

True only for `status: :final`: the transfer is beyond dispute.

# `parse_status`

```elixir
@spec parse_status(String.t()) :: status()
```

Parses the daemon's status string. A status this SDK does not know yet
comes back as `{:unknown, status}`.

---

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