CreateQuoteArgs: {
    actions?: OpenActionConfig[];
    metadata: string;
    quoteOn: PublicationId;
    quoteOnReferenceData?: string;
    reference?: ReferencePolicyConfig;
    referrers?: Referrers;
    sponsored?: boolean;
}

Create new quote details.

Type declaration

  • Optional actions?: OpenActionConfig[]

    The Open Actions associated with the publication.

    Default Value

    empty, no open actions
    
  • metadata: string

    The metadata URI.

  • quoteOn: PublicationId

    The publication ID to quote on.

  • Optional quoteOnReferenceData?: string

    Use this if the target publication is configured with an Unknown Reference Module that requires a calldata to process the reference logic.

    It's consumer responsibility to encode it correctly.

  • Optional reference?: ReferencePolicyConfig

    The quote reference policy.

    Determines the criteria that must be met for a user to be able to comment, quote, or mirror the quote.

    Default Value

    { type: ReferencePolicyType.ANYONE }

  • Optional referrers?: Referrers

    The referrers list for any Unknown Reference Module logic.

    It can be a list of Publication IDs or Profile IDs.

  • Optional sponsored?: boolean

    Whether the transaction costs should be sponsored by the Lens API or should be paid by the authenticated wallet.

    There are scenarios where the sponsorship will be denied regardless of this value. See BroadcastingError with:

    If not specified, or true, the hook will attempt a Sponsored Transaction. Set it to false to force it to use a Self-Funded Transaction.