kernl API
    Preparing search index...

    Function mailboxesModule

    • The signed-in identity's inboxes and outboxes (NIP-65): kernl.mailboxes. Where the identity says it publishes becomes the shell's outbox tier, and a save is signed for the person with the active signer (D-029, D-065). An identity with no list is offered the directory module's suggestions when it is loaded, and the well-known servers otherwise. Without this module the outbox tier stays as the host and the person set it.

      Parameters

      • options: Pick<AccountMailboxesOptions, "patienceMs"> = {}

        How long to wait for a lookup server that never finishes.

      Returns KernlModule<"mailboxes", AccountMailboxes>

      The module; its api is AccountMailboxes.

      const kernl = createKernl({ host, modules: [directoryModule(), mailboxesModule()] });
      await kernl.mailboxes.save({ inboxes: ['wss://in.example'], outboxes: ['wss://out.example'] });