Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Interfaces

Type aliases

Type aliases

PublicationCallback

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

Type declaration

    • (name: Name, topic: Name): 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