Optional field containing the conversationId
and metadata
for V2 conversations.
Will always be undefined on V1 conversations
Timestamp the conversation was created at
The wallet address of the other party in the conversation
The wallet address connected to the client
A unique identifier for ephemeral envelopes for a conversation.
A unique identifier for a conversation. Each conversation is stored on the network on one topic
Takes a XMTP envelope as input and will decrypt and decode it
returning a DecodedMessage
instance.
Returns a list of all messages to/from the peerAddress
Return a PreparedMessage
that has contains the message ID
of the message that will be sent.
Send a message into the conversation.
Return a Stream
of new ephemeral messages from this conversation's
ephemeral topic.
Stream instances are async generators and can be used in
for await
statements.
for await (const message of await conversation.streamEphemeral()) {
console.log(message.content)
}
Returns a Stream of any new messages to/from the peerAddress
Generated using TypeDoc
ConversationV1 allows you to view, stream, and send messages to/from a peer address