• Preparing search index...
  • The search index is not available
Lens SDK Reference
  • Lens SDK Reference
  • @lens-protocol/react-web
  • Core
  • useRevenueFromPublications

Function useRevenueFromPublications

  • useRevenueFromPublications(args): PaginatedReadResult<PublicationRevenue[]>
  • Fetch a profile's revenue for all their publications.

    Parameters

    • args: {
          for: ProfileId;
          limit?: InputMaybe<LimitType>;
          publishedOn?: InputMaybe<AppId[]>;
      }

      UseRevenueFromPublicationsArgs

      • for: ProfileId

        The profile to get revenue for

      • Optional limit?: InputMaybe<LimitType>
      • Optional publishedOn?: InputMaybe<AppId[]>

        Will return revenue for publications made on any of the provided app ids. Will include all apps if omitted

    Returns PaginatedReadResult<PublicationRevenue[]>

    Example

    const { data, error, loading } = useRevenueFromPublications({
    for: '0x04',
    });
    • Defined in packages/react/src/revenue/useRevenueFromPublications.ts:30

Settings

Member Visibility

Theme

Lens SDK Reference
  • @lens-protocol/react-web - v2.3.2
  • @lens-protocol/react-native - v2.3.2
  • @lens-protocol/client - v2.3.2