📖
Metapass API
  • Welcome!
  • Quick Start
    • Graph Node Requests
    • Smart Contract Requests
    • Miscellaneous
  • Reference
    • Graph Node API
      • TKETSFactory
      • Event
      • Ticket
      • TicketToken
    • Smart Contract Specifications
      • EventFactory
        • ABI
      • Ticket
        • ABI
Powered by GitBook
On this page
  • ID
  • event
  • maxTickets
  • ticketPrice
  • ticketStartTime
  • ticketEndTime
  • acceptDonations
  • uri
  • uriHash
  • useTokenIDInURI
  • refundPrice
  • allowRefunds
  • createdAtTimestamp
  • createdAtBlockNumber
  • ticketTokens
  • totalSupply
  • saleVolume
  • balanceTfuel
  • txCount
  • ticketHourData
  • mints
  • transfers
  • stamps
  1. Reference
  2. Graph Node API

Ticket

ID

The ID of the ticket, converted from a Ethereum address into a string. Must be lowercase. Type: ID.

event

The event that contains this ticket. Type: Event.

maxTickets

The maximum number of tickets that can be minted. If set to 0, the number of minted tickets is unbounded. Type: BigInt.

ticketPrice

The price of each ticket in Wei. Type: BigInt.

ticketStartTime

The starting unix timestamp of the ticket sale. Type: BigInt.

ticketEndTime

The ending unix timestamp of the ticket sale. Type: BigInt.

acceptDonations

Checks if a ticket can accept donations on top of the listed price. If false, sending TFUEL above the listed price will revert the transaction. Type: Boolean.

uri

The NFT metadata URI that the ticket has. Type: String.

uriHash

A hash of the URI content, to verify that it has not been tampered with. Type: Bytes.

useTokenIDInURI

Checks if the tokenID should be included in the URI. If true, the token ID will be appended to the URI when retrieving NFT media. Used for tickets that have a unique URI for each token ID. Type: Boolean.

refundPrice

The price of the refund that is set by the owner. Type: BigInt.

allowRefunds

Checks if a ticket can be refunded. Type: Boolean.

createdAtTimestamp

Timestamp of the block where this ticket was created. Type: BigInt.

createdAtBlockNumber

Block number of the block where this ticket was created. Type: BigInt.

ticketTokens

A list of all ticket tokens that were minted for this ticket. Type: [TicketToken].

totalSupply

Current total supply of this ticket. Type: BigInt.

saleVolume

Current total sale volume of this ticket. Type: BigDecimal.

balanceTfuel

Current balance in TFUEL of the smart contract of this ticket. Type: BigDecimal.

txCount

Total number of all transactions done on this ticket. Type: BigInt.

ticketHourData

A list of summarised hourly statistics produced for each ticket. Type: [TicketHourData].

mints

A list of mint transactions for this ticket. Type: [Mint].

transfers

A list of transfer transactions for this ticket. Type: [Transfer].

stamps

A list of stamp transactions for this ticket. Type: [Stamp].

PreviousEventNextTicketToken

Last updated 3 years ago