Rise In Logo



Build on Chiliz

We need to create an ENV file in order to work with the nft-marketplace-template.

Step 1: Create ENV

In the provided template (GitHub Link), there is a .env.local.example file, in the root of our application. Next to this .env.local.example file, let's create a new file called .env.local (at the same level as src, not inside src).

Step 2: Fill ENV

We need 5 things to include in our .env.local.

NEXT_PUBLIC_CLIENT_ID: Client ID from Thirdweb. Once you log in, under settings/API Keys click on your key to reveal clientID at the top.

NEXT_PUBLIC_SECRET_KEY: Client ID from Thirdweb. Once you log in, under settings/API Keys click on your key to reveal the Secret Key under clientID.

NEXT_PUBLIC_NETWORK: SpicyChain - the name of the network in Thirdweb

NEXT_PUBLIC_MARKET_CONTRACT_ADDRESS: marketplace contract address

NEXT_PUBLIC_NFT_CONTRACT_ADDRESS: NFT contract address

Comments

You need to enroll in the course to be able to comment!

Stay in the know

Never miss updates on new programs and opportunities.

Rise In Logo

Rise together in web3!