How to change permissions of AppAgent admin
Intro
This page describes how to change permissions of an admin. Admins' ability to call specific functions can be restricted by setting dispatch filters. Dispatch filters are lists of functions called by an admin. If no dispatch filter is set for an admin, they can call all functions. The recommended practice is to narrowly define the permissions of each admin account.
The calls allowed by default for all admins:
Prerequisites
Before you proceed, ensure you satisfy the following prerequisites:
Create an owner address (see: Jumpstart: setup root addresses)
Ensure you have enough TRAIT tokens (see: Jumpstart: obtain TRAIT tokens)
Ensure you have already created an AppAgent (see: How to create AppAgent)
Ensure the AppAgent already has an admin added (see: How to add & delete AppAgent Admin)
Set dispatch filter for an admin account
βΉοΈ This is a set transaction. Calling set multiple times will overwrite the dispatch filter. To modify an existing dispatch filter, simply set the dispatch filter again with the new changes
Remove dispatch filter from an admin account
βΉοΈ This will remove the dispatch filter from an admin account. To modify an existing dispatch filter for an admin account, call set again with new changes.
Discover more:
Last updated