Function useRevokeSessionKey

  • Revoke a session key on the smart wallet

    Returns UseMutationResult<TransactionResult, unknown, string>

    Example

    const Component = () => {
    const {
    mutate: revokeSessionKey,
    isLoading,
    error,
    } = useRevokeSessionKey();

    if (error) {
    console.error("failed to revoke session key", error);
    }

    return (
    <button
    disabled={isLoading}
    onClick={() => revokeSessionKey("0x...")}
    >
    Revoke Session Key
    </button>
    );
    };

    Twfeature

    Account

Generated using TypeDoc