getPortrait()

  /**
   * Get a Collective Portrait
   * @param {CollectivePortraitName} name - The name of the Collective Portrait that the user would like to get.
   * @returns {Promise<PortraitObject>} - The Portrait object, which contains the Collective Portrait data.
   * @beta
   * @async
   */
  getPortrait(name: CollectivePortraitName): Promise<PortraitObject> {
    const hash = this.getPortraitHash(name);
    return fetchPortrait(
      this.portrait.ipfsGateways,
      this.portrait.arweaveGateway,
      hash,
      this.portrait.arweaveGraphQLprovider,
    );
  }

Last updated