useAccountAdminsAndSigners
Get all signers and admins on a smart wallet account.
const {
data: adminsAndSigners,
isLoading,
error,
} = useAccountAdminsAndSigners(contract);
Usage
Provide the smart wallet account contract address as the argument.
import { useAccountAdminsAndSigners } from "@thirdweb-dev/react";
const accountAddress = "{{account_address}}";
function App() {
const { data: adminsAndSigners, isLoading } =
useAccountAdminsAndSigners(accountAddress);
}
Return Value
A response object that includes the data
property containing an array of all admins and signers of the provided account.