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

getPortraitCount()

/**
   * Get the total number of Collective Portraits.
   * @returns {number} - The total number of Collective Portraits.
   * @beta
   * @async
   */
  getPortraitCount(): number {
    return this.portrait.portraitCollectiveContract.getPortraitCount();
  }
PreviousgetAuctionParameters()NextgetValidUntil()

Last updated 2 years ago