Your Polygon contracts

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.

Last updated