useAddAdmin
Add an additional admin on the smart wallet
Example
const Component = () => {
const { mutate: addAdmin, isLoading, error } = useAddAdmin();
if (error) {
console.error("failed to add admin", error);
}
return (
<button disabled={isLoading} onClick={() => addAdmin("0x...")}>
Add admin
</button>
);
};