DEV Community

Neeraj Choubisa
Neeraj Choubisa

Posted on

Verified Mainnet Polygon Contract

Hardhat.config.js File

Command to Deploy your smart Contract :-
npx hardhat run --network matic scripts/deploy.js
Get the address then verified that contract using.

Command to verify your smart Contract :-
npx hardhat verify 0x394b899AAb17EfCF200AA3F9ce12F6fDf740E6Aa --network matic

Output :-

Successfully submitted source code for contract
contracts/GasLessNFT.sol:GasLessNFT at 0x394b899AAb17EfCF200AA3F9ce12F6fDf740E6Aa
for verification on the block explorer. Waiting for verification result...

Successfully verified contract GasLessNFT on the block explorer.
https://polygonscan.com/address/0x394b899AAb17EfCF200AA3F9ce12F6fDf740E6Aa#code

Enter fullscreen mode Exit fullscreen mode

Verified Successfully

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay