# `BSV.Tokens.Scheme`
[🔗](https://github.com/Bittoku/bsv_sdk_elixir/blob/main/lib/bsv/tokens/scheme.ex#L34)

Token scheme defining the properties of a token.

# `t`

```elixir
@type t() :: %BSV.Tokens.Scheme{
  authority: BSV.Tokens.Authority.t(),
  confiscation: boolean(),
  freeze: boolean(),
  is_divisible: boolean(),
  name: String.t(),
  satoshis_per_token: non_neg_integer(),
  symbol: String.t(),
  token_id: BSV.Tokens.TokenId.t()
}
```

# `from_json`

```elixir
@spec from_json(binary()) :: {:ok, t()} | {:error, term()}
```

Deserialize a token scheme from a JSON string.

# `to_json`

```elixir
@spec to_json(t()) :: {:ok, binary()} | {:error, term()}
```

Serialize the token scheme to a JSON string.

---

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