Portrait Protocol
  • Overview
    • Introduction
  • Getting Started
    • Installation
    • Starting Example
  • Portrait SDK
    • Portrait Class
      • Read
        • getPortrait()
        • getPortraitHash()
        • hasBetaPass()
    • User Portraits
      • Read
        • getPortrait()
        • getPortraitHash()
      • Write
        • setPortraitHash()
        • setPortraitHashAsDelegate()
        • activateKillSwitch()
    • Collective Portraits
      • Read
        • getPortrait()
        • getPortraitHash()
        • isProtocolActive()
        • getTreasuryAddress()
        • getBlockHeightEpoch()
        • getPricesForLength()
        • getGracePeriod()
        • getURI()
        • getAuctionParameters()
        • getPortraitCount()
        • getValidUntil()
        • isAuction()
        • getAuctionStartTime()
        • getAuctionEndTime()
        • getPrice()
        • getAuctionPrice()
        • getTokenIdByName()
        • getNameByTokenId()
        • isAvailable()
        • getShareholders()
        • getTotalShares()
        • getSharesByShareholder()
        • getMinimumControlShares()
        • hasMinimumControlShares()
      • Write
        • registerPortrait()
        • setPortraitHash()
        • setPortraitHashAsDelegate()
        • setMinimumControlShares()
        • shareSplit()
        • renewPortrait()
    • Helpers
  • Resources
    • Portrait Builder
    • CollectivePortraitRegistry Contract
    • UserPortraitRegistry Contract
    • PortraitBetaPass Contract
    • portrait-sdk
    • GitHub
    • Dune Analytics
Powered by GitBook
On this page
  1. Portrait SDK
  2. Collective Portraits
  3. Read

getPortraitHash()

  /**
   * Get a Collective Portrait Hash
   * @param {CollectivePortraitName} name - The name of the Collective Portrait that the user would like to get a hash for.
   * @returns {string} - The hash of the Collective Portrait.
   * @beta
   * @async
   */
  getPortraitHash(name: CollectivePortraitName): string {
    return this.portrait.portraitCollectiveContract.getPortraitHash(name);
  }
PreviousgetPortrait()NextisProtocolActive()

Last updated 2 years ago