useAccountAdminsAndSigners

Get all signers and admins on a smart wallet account.

import { useAccountAdminsAndSigners } from "@thirdweb-dev/react";
const {
data: accounts,
isLoading,
error,
} = useAccountAdminsAndSigners(contract);
function useAccountAdminsAndSigners(
contract: RequiredParam<SmartContract<BaseContract>>,
): UseQueryResult<Array<SignerWithPermissions>>;

Parameters

Instance of SmartContract

Type

let contract: RequiredParam<SmartContract<BaseContract>>;

Returns

let returnType: UseQueryResult<Array<SignerWithPermissions>>;

hook's data property containing an array of all admins and signers