AppAgent Lifecycle
Creating an AppAgent
An AppAgent can be created on-chain by any regular address by sending a special transaction. The caller address becomes the owner of the AppAgent.
On creation of the ApAgent some amount of TRAIT tokens (approximately equivalent of 500 USD) is automatically transferred from owner address to AppAgent address. Later these tokens will cover first subscription payments and any other fees. Please manage non-zero balance of AppAgent in order to keep it active.
It's highly recommended to setup an Admin for the AppAgent and keep owner address and its private key in a secure location.
Read more about creating an AppAgent here: How to create AppAgent
Pausing an AppAgent
An AppAgent can be paused at any time by the owner of the AppAgent. When an App Agent is paused, it will no longer dispatch any transactions and will freeze all functions related to the AppAgent. It will also stops any transfers of Fungible tokens and NFT Collections managed by AppAgent.
Pausing of an AppAgent can help in situations when you lose control over an admin's private keys and need some time fix the issue.
Read more about pausing AppAgents here: How to pause AppAgent
Destroying an AppAgent
Destroying an AppAgent is a process of removal it from the blockchain. This is a complex multi-stage process since an AppAgent is responsible for other addresses and assets on-chain. All NFT collections and Fungible tokens owned by the AppAgent will be deleted as well.
All the assets and addresses controlled by the AppAgent have to be properly cleaned up before an AppAgent can be completely destroyed. Finishing an initiated AppAgent destroying process is the only way to release TRAIT tokens and other assets held by addresses controlled by the AppAgent.
The destroying is started by sending a special transaction. Also destroying of AppAgent can be initiated by the system after a failure in charging a subscription fee.
The App Agent can be restored within one week after the start of the destroying process.
Read more about deletion an AppAgent here: How to destroy AppAgent
Suspending an AppAgent
In case of mis-behaviour that harms the users of TRAIT an AppAgent can be suspended. In order to restore the AppAgent please contact us via email: support@trait.tech
Last updated