EventFactoryContext: {
    client?: EventFactoryClient;
    emojis?: Helpers.Emoji[];
    getPubkeyRelayHint?: ((pubkey: string) =>
        | string
        | undefined
        | Promise<string>
        | Promise<undefined>);
    getRelayHint?: ((event: NostrEvent) =>
        | 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

  • OptionalgetPubkeyRelayHint?: ((pubkey: string) =>
        | string
        | undefined
        | Promise<string>
        | Promise<undefined>)
      • (pubkey):
            | string
            | undefined
            | Promise<string>
            | Promise<undefined>
      • Parameters

        • pubkey: string

        Returns
            | string
            | undefined
            | Promise<string>
            | Promise<undefined>

  • OptionalgetRelayHint?: ((event: NostrEvent) =>
        | string
        | undefined
        | Promise<string>
        | Promise<undefined>)
      • (event):
            | string
            | undefined
            | Promise<string>
            | Promise<undefined>
      • Parameters

        • event: NostrEvent

        Returns
            | string
            | undefined
            | Promise<string>
            | Promise<undefined>

  • Optionalsigner?: EventFactorySigner

    A signer used to encrypt the content of some notes