🎉 Ryft Explorer beta is released. Learn more →
AboutAboutProtocol Explorer ↗Protocol Explorer ↗ (opens in a new tab)
  • Introduction
    • Get Started
    • Installation
      • Createconversation
      • Creategroup
      • Sendmessage
      • Setgroupmembers
      • Updategroup
      • Setfollow
      • Setnotificationsreadtime
      • Updateprofile
      • Getpost
      • Getposts
      • Getprofile
      • Getreaction
      • Connect
      • Decryptmessage
      • Logout
      • Createpost
      • Deletepost
      • Editpost
      • React
      • Uploadmedia
    • Configuration
    • Overview
    • Points
    • Installation
    • App Studio
    • Decentralized Identify
    • Magma
    • Rules Engine
    • Tectonix
    • UI Kits
    • Video
    • Overview
  • Introduction
  • About
    • Get Started
    • Installation
      • Createconversation
      • Creategroup
      • Sendmessage
      • Setgroupmembers
      • Updategroup
      • Setfollow
      • Setnotificationsreadtime
      • Updateprofile
      • Getpost
      • Getposts
      • Getprofile
      • Getreaction
      • Connect
      • Decryptmessage
      • Logout
      • Createpost
      • Deletepost
      • Editpost
      • React
      • Uploadmedia
    • Configuration
    • Overview
    • Points
    • Installation
    • App Studio
    • Decentralized Identify
    • Magma
    • Rules Engine
    • Tectonix
    • UI Kits
    • Video
    • Overview
  • Protocol Explorer ↗ (opens in a new tab)

On This Page

  • Parameters
  • Returns
Question? Give us feedback → (opens in a new tab)Edit this page
API
query
Getprofile

ryft.getProfile()

Returns the profile details of a user.

let { data, error } = await ryft.getProfile(did);

Parameters

Returns

{
  did: "did:pkh:...",
  profile: {
    username: "Alice",
    description: "",
    pfp: "https://..."
  },
  encrypted_email: {
    encryptedString: "...",
    encryptedSymmetricKey: "",
    accessControlConditions: ""
  },
  count_followers: 4,
  count_following: 2,
  last_activity_timestamp: 1656580635
}
GetpostsGetreaction

Ryft | Docs