SDK Reference
Methods
GetProfileFollowing

getProfileFollowing

Returns a users a specified DID is following.

How to use?

const { data, error } = await orbis.getProfileFollowing(did);

Parameters

  • did - DID of a profile whose following list we are querying (list of profiles this DID follows)

Returns

Returns an array of profiles specified DID is following.

[
  {
    did: "did:pkh:...",
    details: {
      did: "did:pkh:...",
      profile: {
        username: "Baptiste",
        description: "",
        pfp: "https://..."
      }
    }
  },
  {
    did: "did:pkh:...",
    details: {
      did: "did:pkh:...",
      profile: {
        username: "Baptiste",
        description: "",
        pfp: "https://..."
      }
    }
  },
  ...
]