CreateMirrorArgs: {
    mirrorOn: PublicationId;
    mirrorOnReferenceData?: string;
    referrers?: Referrers;
    sponsored?: boolean;
}

Mirror a publication.

Type declaration

  • mirrorOn: PublicationId

    The publication ID to mirror.

  • Optional mirrorOnReferenceData?: string

    Use this if the mirrored 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 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.