Represents the IdentityUser class providing methods to interact with user data.

Hierarchy

  • IdentityUser

Constructors

  • Constructs a new instance of the IdentityUser class.

    Parameters

    • _identity: IdentityClient

      The IdentityClient instance.

    • _user: User

      The underlying User data.

    Returns IdentityUser

Accessors

  • get address(): PublicKey
  • Gets the user's account address.

    Returns PublicKey

    The user's account address.

  • get bio(): string
  • Gets the user's bio.

    Returns string

    The user's bio.

  • get data(): User
  • Gets the raw User data.

    Returns User

    The raw User data.

  • get name(): string
  • Gets the user's name.

    Returns string

    The user's name.

  • get pfp(): string
  • Gets the user's profile picture URL (pfp).

    Returns string

    The user's profile picture URL (pfp).

  • get primaryWallet(): PublicKey
  • Gets the user's primary wallet.

    Returns PublicKey

    The user's primary wallet.

  • get secondaryWallets(): PublicKey[]
  • Gets the user's secondary wallets.

    Returns PublicKey[]

    The user's secondary wallets.

  • get username(): string
  • Gets the user's username.

    Returns string

    The user's username.

Methods

  • Adds a new wallet to the user's secondary wallets.

    Parameters

    • wallet: KeypairLike

      The wallet to be added.

    • Optional confirmOptions: ConfirmOptions

      The confirmation options for the transaction.

    Returns Promise<ConfirmedContext>

    A promise that resolves with the transaction context.

  • Removes a wallet from the user's secondary wallets.

    Parameters

    • wallet: PublicKey

      The wallet to be removed.

    • Optional confirmOptions: ConfirmOptions

      The confirmation options for the transaction.

    Returns Promise<ConfirmedContext>

    A promise that resolves with the transaction context.

  • Updates the user's information.

    Parameters

    • args: UpdateUserArgs

      The arguments for updating the user's information.

    • Optional confirmOptions: ConfirmOptions

      The confirmation options for the transaction.

    Returns Promise<ConfirmedContext>

    A promise that resolves with the transaction context.

Generated using TypeDoc