📖
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
  • Figure out which service you need
  • Integrate Metamask
  • Getting your smart contract address
  • Next steps

Quick Start

PreviousWelcome!NextGraph Node Requests

Last updated 3 years ago

Figure out which service you need

Our Graph node indexer is free for anyone to query, and is simpler to query with less technical details. However, for some users, it may be more suitable to query our smart contracts directly.

We would recommend interacting with our smart contracts if you:

  • Only require checking ownership of a ticket NFT for access, without needing to know which exact NFT token ID the user owns. This is commonly the case for websites that simply wish to use Metapass tickets for authentication

  • Require some advanced interaction with the smart contracts directly. For example, needing to approve or transfer ticket NFTs on your platform.

For most users, we recommend using our graph node service if you:

  • Need to know which exact NFTs a user owns. This is the often case if you need to obtain additional information about each ticket. i.e, if you need to maintain additional data regarding each ticket owned.

  • Need to know the transaction history of a particular ticket NFT. This is useful for building 3rd party marketplaces on top of our NFTs.

  • Do not need to interact directly (a.k.a. write to) our smart contracts, you just need to read information about them

Integrate Metamask

For both services, you will need a way to connect your user with his Metamask wallet. It is recommended to do so with a modern javascript frontend stack, such as using React or Angular. See below for two guides on how to do so on the Theta blockchain:

Getting your smart contract address

Next, you need to know what the smart contract address(es) is for the tickets you have created on Metapass. For individual events, follow the steps below to do so:

  1. Click on the events tab on the top of the page

  2. Find and click on the event you want to use your smart contracts for

  3. Click on the "Creator Dashboard" on the top right of the page

  4. Click on the "Balances" subpage on the left sidebar

  5. Here, you can see a list of tickets you have created for this event. Take note of their smart contract addresses.

Next steps

After you have a Metamask connection setup, follow through our next pages to see how you can integrate Metapass NFTs:

Navigate to

beta.metapass.world
GitHub - thetatoken/useDApp: Framework for rapid Dapp development. Simple. Robust. Extendable. TestableGitHub
useDApp Library
Logo
GitHub - thetatoken/theta-metamask-demoGitHub
A demo Metamask project, built to mimic the Uniswap interface
Logo