CreatePostArgs: {
    actions?: OpenActionConfig[];
    metadata: string;
    reference?: ReferencePolicyConfig;
    sponsored?: boolean;
}

Create new post details.

Type declaration

  • Optional actions?: OpenActionConfig[]

    The Open Actions associated with the publication.

    Default Value

    empty, no open actions
    
  • metadata: string

    The metadata URI.

  • Optional reference?: ReferencePolicyConfig

    The post reference policy.

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

    Default Value

    { type: ReferencePolicyType.ANYONE }

  • 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.