useProfileFollowRevenue

useProfileFollowRevenue is a React hook used to query the revenue a profile has generated through their paid follow module.

const { data, loading } = useProfileFollowRevenue(args)

Usage

import { useProfileFollowRevenue } from '@lens-protocol/react';

export function ProfileFollowRevenue({ profileId }: { profileId: string }) {
  const { data, loading } = useProfileFollowRevenue({
    profileId,
  });
  // ...
}

Reference

useProfileFollowRevenue(args)

Parameters

  • profileId (required)

The id of the profile of which to query the follow revenue

Returns

{
  data: RevenueAggregateFragment[],
  loading: boolean
}