1.1.2 (Option) Remove Admin

Remove Admin Step-by-Step test guide

Removes an admin account. Ensures the caller has the configured whitelist origin, checks the account is currently registered, removes it from AdminAccounts storage, emits AdminRemoved event, and returns Ok.

  1. Go to Developer → Extrinsics.

  2. In “Account”, select your Sudo/Root account (e.g., Alice).

  3. Under “submit the following extrinsic”, choose sudo.

  4. Under “Call”, select sudoUncheckedWeight.

  5. In the parameters, choose:

    • call: select xcavateWhitelist → remove_admin.

    • admin: type the account to add.

    • weight: set as default or leave blank.

  6. Click Submit Transaction → Sign and Submit.

  1. Transaction approved

✅ Check result:

  • Go to Developer → (1) Chain State → (2) xcavateWhitelist → adminAccounts(account) → (3) Click + Query.

  • Should return None.

Return none after Alice is also removed

Last updated