PublicationCallback: (name: Name, topic: Name) => Promise<Data | Encodable>

A callback function to generate publication packet.

Type declaration

    • (name: Name, topic: Name): Promise<Data | Encodable>
    • Parameters

      • name: Name

        Expected Data name.

      • topic: Name

        Topic name.

      Returns Promise<Data | Encodable>

      Either a Data that is already signed, or an Encodable to use as publication body.