Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "profile"

Index

Functions

accountThread

  • accountThread(): Promise<IThread>
  • Get the account thread.

    Returns Promise<IThread>

avatar

  • avatar(): Promise<string | undefined>
  • Get the BlockId of the current user Avatar.

    Textile.profile.avatar();

    Returns Promise<string | undefined>

get

  • get(): Promise<IPeer>
  • Get the profile.

    Textile.profile.get();

    Returns Promise<IPeer>

name

  • name(): Promise<string | undefined>
  • Get the name.

    Textile.profile.name();

    Returns Promise<string | undefined>

setAvatar

  • setAvatar(item: string): Promise<IBlock>
  • Set the user's avatar image

    Parameters

    • item: string

      The path to an image or existing hash to set as the avatar

    Returns Promise<IBlock>

    A Promise that will resolve with the Block result

setName

  • setName(name: string): Promise<void>
  • Update the name.

    Textile.profile.setName(name);

    Parameters

    • name: string

    Returns Promise<void>