Skip to main content

useAccountAdmins

Get all the admins on a smart wallet account

const { data: accounts, isLoading, error } = useAccountAdmins(contract);

Usage

Provide the smart wallet account contract address as the argument.

import { useAccountAdmins } from "@thirdweb-dev/react";

const accountAddress = "{{account_address}}";

function App() {
const { data: admins, isLoading } = useAccountAdmins(accountAddress);
}

Return Value

The hook's data property, once loaded, contains an array of all admins of the provided account