Documentation
    Preparing search index...

    Interface DmAdapter

    DM adapter — send direct messages (NIP-17 gift-wrap).

    interface DmAdapter {
        sendDm(
            recipientPubkey: string,
            message: string,
        ): Promise<{ error?: string; eventId?: string; success: boolean }>;
    }
    Index

    Methods

    Methods

    • Parameters

      • recipientPubkey: string
      • message: string

      Returns Promise<{ error?: string; eventId?: string; success: boolean }>