Skip to content

algopy_testing.models.account

AccountFields
AssetHolding
AccountContextDataStores account-related information.
AccountRepresents a type that is a single bytes value.
get_empty_account(→ AccountContextData)
T

Bases: TypedDict

Stores account-related information.

Attributes: : opted_assets (dict[int, AssetHolding]): Mapping of asset IDs to holdings. opted_apps (dict[int, algopy.Application]): Mapping of application IDs to instances. fields (AccountFields): Additional account fields.

opted_apps : dict[int, algopy.Application]

Section titled “opted_apps : dict[int, algopy.Application]”

Bases: algopy_testing.protocols.BytesBacked

Represents a type that is a single bytes value.

is_opted_in(asset_or_app: algopy.Asset | algopy.Application) → bool

Section titled “is_opted_in(asset_or_app: algopy.Asset | algopy.Application) → bool”

classmethod from_bytes(value: algopy.Bytes | bytes) → Self

Section titled “classmethod from_bytes(value: algopy.Bytes | bytes) → Self”

Construct an instance from the underlying bytes (no validation)

Get the underlying Bytes.