How to change AppAgent Owner

Intro

The transfer of ownership for an AppAgent involves three steps:

  1. Initiation: The current owner of the AppAgent initiates the process by calling the change_owner_init function, providing:

    • The ID of the AppAgent

    • The account ID of the new owner.

  2. Completion: Once the initiation is successful, the new owner completes the process by calling the change_owner_complete function, providing:

    • Their account ID

    • The ID of the AppAgent.

  3. Cancellation: If the ownership transfer is no longer desired, the current owner can cancel the process by calling the change_owner_cancel function, providing the ID of the AppAgent. This clears the proposed owner field.

Prerequisites

  1. Ensure the caller address is the owner of the AppAgent

  2. Ensure the proposed new owner is a regular address (not a keyless address) and that it has tokens to pay for transaction fees.

Change owner

Cancel change owner request

Discover more:

Last updated