# models.state

## Attributes

| [`TealTemplateParams`](https://dev.algorand.co/reference/algokit-utils-py/api/models/state/#algokit_utils.models.state.TealTemplateParams) |  |
| --- | --- |
| [`BoxIdentifier`](https://dev.algorand.co/reference/algokit-utils-py/api/models/state/#algokit_utils.models.state.BoxIdentifier) |  |

## Classes

| [`BoxName`](https://dev.algorand.co/reference/algokit-utils-py/api/models/state/#algokit_utils.models.state.BoxName) | The name of the box |
| --- | --- |
| [`BoxValue`](https://dev.algorand.co/reference/algokit-utils-py/api/models/state/#algokit_utils.models.state.BoxValue) | The value of the box |
| [`DataTypeFlag`](https://dev.algorand.co/reference/algokit-utils-py/api/models/state/#algokit_utils.models.state.DataTypeFlag) | Enum where members are also (and must be) ints |
| [`BoxReference`](https://dev.algorand.co/reference/algokit-utils-py/api/models/state/#algokit_utils.models.state.BoxReference) | Represents a box reference with a foreign app index and the box name. |

## Module Contents

### _class_ algokit\_utils.models.state.BoxName

The name of the box

#### name _: str_

The name of the box as a string. If the name can’t be decoded from UTF-8, the string representation of the bytes is returned instead.

#### name\*raw \*: bytes\_

The name of the box as raw bytes

#### name\*base64 \*: str\_

The name of the box as a base64 encoded string

### _class_ algokit\_utils.models.state.BoxValue

The value of the box

#### name _: [BoxName](https://dev.algorand.co/reference/algokit-utils-py/api/models/state/#algokit_utils.models.state.BoxName)\_

The name of the box

#### value _: bytes_

The value of the box as raw bytes

### _class_ algokit\_utils.models.state.DataTypeFlag

Bases: `enum.IntEnum`

Enum where members are also (and must be) ints

#### BYTES _= 1_

#### UINT _= 2_

### _type_ algokit\*utils.models.state.TealTemplateParams \*= Mapping[str, str | int | bytes] | dict[str, str | int | bytes]\_

### _type_ algokit\*utils.models.state.BoxIdentifier \*= str | bytes | AccountTransactionSigner\_

### _class_ algokit\_utils.models.state.BoxReference(app\_id: int, name: bytes | str)

Bases: `algosdk.box_reference.BoxReference`

Represents a box reference with a foreign app index and the box name.

Args:
: app\_index (int): index of the application in the foreign app array
name (bytes): key for the box in bytes
