Skip to main content
Version: 0.9.1

Tickets

GET /explorer/contract/{address}/tickets // issuer view (for ticketer contracts)

Lists tickets issued by a contract. A ticket is uniquely identified by a ticketer (the issuer contract), a Micheline type and a Micheline value which matches the type. Tickets can further have an amount field which represents a balance. See the table below for details.

Available query filters

  • type ticket hash as hex-encoded Micheline value
  • content ticket hash as hex-encoded Micheline value
  • hash ticket hash as hex-encoded uint64
  • limit max number of items to return
  • order list order (asc or desc by id field)
  • cursor last seen id, use for pagination
  • offset skip number of items (inefficient, use cursor)
FieldDescription
id int64Internal ticket identity database id.
ticketer hashTicket issuer contract address as base58-check encoded string.
type objectMicheline type.
content objectMicheline value.
hash uint64Ticket identity hash over ticketer, type, content added by the indexer.
creator hashFirst ticket minter, i.e. wallet signing the transaction during which the first ticket of this type was minted.
first_block int64Block height of first transaction.
first_time datetimeBlock time of first transaction.
last_block int64Block height of the most recent transaction.
last_time datetimeBlock time of the most recent transaction.
total_supply bigintCurrent ticket supply.
total_mint bigintTotal amount ever minted.
total_burn bigintTotal amount ever burned.
num_transfers int64Number of ticket transfer events.
num_holders int64Current number of ticket holders (wallets or contracts).

Ticket Events​

GET /explorer/account/{address}/ticket_events  // wallet view (for ticket holders)
GET /explorer/contract/{address}/ticket_events // issuer view (for ticketer contracts)

Lists ticket related events such as mint, burn and transfer which happen as result of a transaction.

Available query filters

  • type ticket hash as hex-encoded Micheline value
  • content ticket hash as hex-encoded Micheline value
  • hash ticket hash as hex-encoded uint64
  • event_type filter by type (mint, burn and transfer)
  • sender filter by sender address
  • receiver filter by receiver address
  • height filter by block height
  • limit max number of items to return
  • order list order (asc or desc by id field)
  • cursor last seen id, use for pagination
  • offset skip number of items (inefficient, use cursor)
FieldDescription
id int64Internal ticket event database id.
ticketer hashTicket issuer contract address as base58-check encoded string.
type objectMicheline type.
content objectMicheline value.
hash uint64Ticket identity hash over ticketer, type, content added by the indexer.
event_type enumEvent type mint, burn and transfer.
sender hashTicket sender address, empty on mint.
receiver hashTicket receiver address, empty on burn.
amount bigintAmount sent.
height int64Block height of this event.
time datetimeBlock time of this event.
op_id uint64Reference to the transaction as unique database id.

Ticket Balances​

GET /explorer/account/{address}/ticket_balances  // wallet view (for ticket holders)
GET /explorer/contract/{address}/ticket_balances // issuer view (for ticketer contracts)

Lists ticket related balances.

Available query filters

  • account owner account
  • type ticket hash as hex-encoded Micheline value
  • content ticket hash as hex-encoded Micheline value
  • hash ticket hash as hex-encoded uint64
  • limit max number of items to return
  • order list order (asc or desc by id field)
  • cursor last seen id, use for pagination
  • offset skip number of items (inefficient, use cursor)
FieldDescription
id int64Internal ticket balance database id.
ticketer hashTicket issuer contract address as base58-check encoded string.
type objectMicheline type.
content objectMicheline value.
hash uint64Ticket identity hash over ticketer, type, content added by the indexer.
account hashTicket owner.
balance bigintCurrent ticket balance.
first_block int64Block height of first transaction.
first_time datetimeBlock time of first transaction.
last_block int64Block height of the most recent transaction.
last_time datetimeBlock time of the most recent transaction.
num_transfers int64Number of ticket transfer events this owner participated in.
num_mints int64Number of ticket mint events initiated by this owner.
num_nurns int64Number of ticket burn events initiated by this owner.
vol_sent bigintTotal amount ever received by this owner.
vol_recv bigintTotal amount ever sent by this owner.
vol_mint bigintTotal amount ever minted by this owner.
vol_burn bigintTotal amount ever burned by this owner.