• Add an additional admin on the smart wallet

    Returns UseMutationResult<TransactionResult, unknown, string>

    Example

    const Component = () => {
    const {
    mutate: removeAdmin,
    isLoading,
    error,
    } = useRemoveAdmin();

    if (error) {
    console.error("failed to remove admin", error);
    }

    return (
    <button
    disabled={isLoading}
    onClick={() => removeAdmin("0x...")}
    >
    Remove admin
    </button>
    );
    };

    Twfeature

    Account

Generated using TypeDoc