CreateCommentArgs: {
    actions?: OpenActionConfig[];
    commentOn: PublicationId;
    commentOnReferenceCalldata?: string;
    metadata: string;
    reference?: ReferencePolicyConfig;
    referrers?: Referrers;
    sponsored?: boolean;
}

Create new comment details.

Type declaration

  • Optional actions?: OpenActionConfig[]

    The Open Actions associated with the publication.

    Default Value

    empty, no open actions
    
  • commentOn: PublicationId

    The publication ID to comment on.

  • Optional commentOnReferenceCalldata?: 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.

  • metadata: string

    The metadata URI.

  • Optional reference?: ReferencePolicyConfig

    The comment reference policy.

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

    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.