Real Items API
  • Welcome
  • Account
    • Subscribe to a plan
    • Access your account
    • Get your API key
    • Manage your subscription
  • Resources
    • Postman documentation
    • Quotas and rate limits
  • Quick Start
    • Introduction
    • Fork the Real Items API
    • Your Polygon contracts
    • Mint your first Item
  • Examples
    • Item Viewer
Powered by GitBook
On this page
  • Set your API key
  • Get your testnet contract ID
  1. Quick Start

Your Polygon contracts

PreviousFork the Real Items APINextMint your first Item

Last updated 2 years ago

Set your API key

In your workspace, click on Collections. Then, click on the Real Items API fork that you had created.

The collection configuration page will appear. To set your API key, click on the Variables tab. Under the CURRENT VALUE column, replace YOUR_API_KEY with your API key.

Make sure to click Save afterwards.

You can also set your API key under the INITIAL VALUE column. Note that doing so will possibly expose your API key if you share the collection with your team.

Get your testnet contract ID

Your account is associated with two smart contracts:

  • A Real Items ERC721 smart contract deployed on Polygon (mainnet contract)

  • A Real Items ERC721 smart contract deployed on Polygon Mumbai (testnet contract)

For this guide, we will be minting an Item using your testnet contract. Navigate to the listContracts query in your workspace.

Click the Send button to run the request.

In the response, you will find your testnet and mainnet contract details.

Copy your testnet contract ID. In this example, the testnet contract ID is: 0939ee83-3164-4ee8-8516-359cba136a77. You will mint an Item using your testnet contract.

Make sure to use your own contract ID.