Represents the IdentityFetch class providing methods for fetching delegate authority, wallet resolver, user, and profile information.

Hierarchy

  • IdentityFetch

Constructors

  • Constructs a new instance of the IdentityFetch class.

    Parameters

    Returns IdentityFetch

Methods

  • Fetches the delegate authority for a project and wallet.

    Parameters

    • Optional projectKey: string | PublicKey

      The project key or address.

    • Optional wallet: PublicKey

      The wallet public key.

    • Optional commitmentOrConfig: Commitment | GetAccountInfoConfig

      The commitment or config object for the account info query.

    Returns Promise<DelegateAuthorityWithAddress>

    A promise that resolves with the delegate authority and its account address.

  • Fetches a user's profile for a project.

    Parameters

    • Optional projectKey: string | PublicKey

      The project key or address.

    • Optional user: PublicKey

      The user's account address. If not provided, the currently authenticated user's address will be used.

    • Optional identity: string | PublicKey

      The user's identity key or address.

    • Optional commitmentOrConfig: Commitment | GetAccountInfoConfig

      The commitment or config object for the account info query.

    Returns Promise<IdentityProfile>

    A promise that resolves with the user's IdentityProfile instance.

  • Fetches all profiles associated with a user.

    Parameters

    • Optional user: PublicKey

      The user's account address. If not provided, the currently authenticated user's address will be used.

    Returns Promise<Profiles>

    A promise that resolves with an object containing profiles associated with projects.

  • Fetches a user's information.

    Parameters

    • address: PublicKey

      The user's account address.

    • Optional commitmentOrConfig: Commitment | GetAccountInfoConfig

      The commitment or config object for the account info query.

    Returns Promise<IdentityUser>

    A promise that resolves with the user's IdentityUser instance.

  • Fetches the wallet resolver for a wallet.

    Parameters

    • Optional wallet: PublicKey

      The wallet public key.

    • Optional commitmentOrConfig: Commitment | GetAccountInfoConfig

      The commitment or config object for the account info query.

    Returns Promise<WalletResolver>

    A promise that resolves with the wallet resolver.

Generated using TypeDoc