orbis.getProfileGroups()

Returns an array of group a user is a member of.

How to use?

let { data, error } = await orbis.getProfileGroups(did);

Parameters

  • did: Did of the user

Returns

/** Returns an array of groups */
  [
  	{
  		stream_id: "k...",
  		did: "did:pkh:..",
  		group_id: "k...",
  		group_details: {
  			pfp: "https://arweave.net/_yefpXWgwxcbhc8UlOMvQH8-sqB0Z_57qsdKfHEHQAk",
  			name: "Orbis Community",
  			description: "Official group to discuss the Orbis protocol."
  		}
  	},
  	...
  ]

Next steps

Explore other parts of the API.

orbis.getProfile()

orbis.getConversations()