# How to config asset default freeze teal

**URL:** <https://forum.algorand.co/t/how-to-config-asset-default-freeze-teal/6527>\
**Category:** General\
**Tags:** teal, smart-contracts\
**Created:** [April 20, 2022, 4:16pm UTC](https://forum.algorand.co/t/how-to-config-asset-default-freeze-teal/6527 "2022-04-20T16:16:33Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![fabrice](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@fabrice](https://forum.algorand.co/u/fabrice)\
**Post date:** [April 20, 2022, 5:54pm UTC](https://forum.algorand.co/t/how-to-config-asset-default-freeze-teal/6527/2 "2022-04-20T17:54:01Z")

</div>

Asset default freeze is a flag set at creation of a new asset.  
The only time a smart contract may be able to set such flag is when the smart contract creates a new asset from its application account.  
As such, it is set in the appropriate inner transaction ([Smart contract details - Algorand Developer Portal](https://developer.algorand.org/docs/get-details/dapps/smart-contracts/apps/#asset-create)) using the `TxnField. config_asset_default_frozen ` field ([PyTeal Package — PyTeal documentation](https://pyteal.readthedocs.io/en/stable/api.html?highlight=txnfield#pyteal.TxnField.config_asset_default_frozen)).

Remember that assets on Algorand are _not_ smart contracts contrary to Ethereum.  
In most use cases, assets should be created outside of smart contracts and smart contracts only opt in and transfer assets.

---

_[View the full topic](https://forum.algorand.co/t/how-to-config-asset-default-freeze-teal/6527)._
