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

Type declaration

    • (name, topic): Promise<Data | Encodable>
    • A callback function to generate publication packet.

      Parameters

      • name: Name

        expected Data name.

      • topic: Name

        topic name.

      Returns Promise<Data | Encodable>

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

Generated using TypeDoc