orbis.getConversation()

Returns the details of a conversation.

How to use?

let { data, error } = await orbis.getConversation(conversation_id);

Parameters

  • conversation_id: ID of the conversation

Returns

{
  		stream_id: "k...",
  		recipients: [
  			"did:pkh:eip155:1:0x075286d1a22b083ebcaf6b7fb4cf970cfc4a18f0",
  			"did:pkh:eip155:1:0x222bc13f54b2f14e41945c9f2f3b9f00b4ec9b40"
  		],
  		recipient_details: [
  			{
  				did: "did:pkh:eip155:1:0x075286d1a22b083ebcaf6b7fb4cf970cfc4a18f0",
  				profile: {
  					pfp: "https://arweave.net/QwZGtefxAtCAE5KYWP2H59F5kZ5sCJdqMJP9szFEFHM",
  					username: "Baptiste",
  					description: "Testing on mainnet!"
  				}
  			}, {
  				did: "did:pkh:eip155:1:0x222bc13f54b2f14e41945c9f2f3b9f00b4ec9b40",
  				profile: {
  					pfp: "https://arweave.net/LvZcb6xBhVr7m93Ta3O9a9R5fiRj5BWvGKQ0wgCS7Yo",
  					username: "OrbisTester",
  					description: "Just testing around!"
  				}
  			}
  		],
  		last_message_timestamp: 1656580635
  	}

Next steps

Explore other parts of the API.

orbis.getConversations()

orbis.getMessages()