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

Function useRevenueFromPublication

  • useRevenueFromPublication(args): ReadResult<PublicationRevenue, NotFoundError | UnspecifiedError>
  • Fetch a profile's revenue from a single publication.

    Parameters

    • args: RevenueFromPublicationRequest

    Returns ReadResult<PublicationRevenue, NotFoundError | UnspecifiedError>

    Example

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

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