EventFactoryContext: {
    client?: EventFactoryClient;
    emojis?: Helpers.Emoji[];
    getEventRelayHint?: (
        event: string,
    ) => string | undefined | Promise<string> | Promise<undefined>;
    getPubkeyRelayHint?: (
        pubkey: string,
    ) => string | undefined | Promise<string> | Promise<undefined>;
    signer?: EventFactorySigner;
}

Type declaration

  • Optionalclient?: EventFactoryClient

    NIP-89 client tag

  • Optionalemojis?: Helpers.Emoji[]

    An array of custom emojis that will be used in text note content

  • OptionalgetEventRelayHint?: (event: string) => string | undefined | Promise<string> | Promise<undefined>
  • OptionalgetPubkeyRelayHint?: (pubkey: string) => string | undefined | Promise<string> | Promise<undefined>
  • Optionalsigner?: EventFactorySigner

    A signer used to encrypt the content of some notes