Decast-Gating-Document
  • References
  • Storage-Variables
  • State-Update-Functions
    • registerEvent
    • mintTicket
    • mintTicketPayable
    • registerAccessLevels
    • setMintingApproval
    • withdrawCollectedAmountForEventId
    • setBaseURI
    • transferOwnership
  • Internal-Functions
    • _mintTicket
  • Helper-View-Functions
    • generateTokenId
    • getTokenIdOfAnEventManager
    • getTokenIdOfAccessLevel
    • checkIfCallerIsEventManager
    • checkTokenIdExistsForEventId
    • checkAccessLevelExists
    • balanceOf
    • balaceOfBatch
    • exists
    • owner
    • totalSupply
    • uri
  • Getter-View-Functions
  • Helper-Pure-Functions
Powered by GitBook
On this page
  1. Helper-View-Functions

balanceOf

This view function checks whether user have tokenId or not. It returns uint, 0 indicates false and if greater than 1 indicates true. It takes two parameters:

  • address: The User Address.

  • id: The Token Id.

PreviouscheckAccessLevelExistsNextbalaceOfBatch

Last updated 1 year ago