useAccountAdmins

Get all the admins on a smart wallet account

Example

const {
data: accounts,
isLoading,
error,
} = useAccountAdmins(contract);
function useAccountAdmins(
contract: RequiredParam<SmartContract<BaseContract>>,
): UseQueryResult<Array<WalletAddress>>;

Parameters

Instance of SmartContract

Type

let contract: RequiredParam<SmartContract<BaseContract>>;

Returns

let returnType: UseQueryResult<Array<WalletAddress>>;

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