useIsAccountDeployed

Check if a account has been deployed for the given admin in the account factory contract

Example

const {
data: isAccountDeployed,
isLoading,
error,
} = useIsAccountDeployed(contract);
function useIsAccountDeployed(
contract: RequiredParam<SmartContract<BaseContract>>,
admin: RequiredParam<string>,
extraData?: BytesLike,
): UseQueryResult<boolean>;

Parameters

Instance of a account factory contract

Type

let contract: RequiredParam<SmartContract<BaseContract>>;

Type

let admin: RequiredParam<string>;

Type

let extraData: BytesLike;

Returns

let returnType: UseQueryResult<boolean>;

A boolean indicating if a account has been deployed for the given admin