Mint your first NFT

Learn how to create a unique, fully on-chain NFT on Base Sepolia testnet.

Minting an NFT means creating a new, unique token on the blockchain. The smart contract assigns it a token ID, links it to your wallet, and stores its metadata permanently onchain.

In this lesson you mint a simple NFT where the entire image and metadata live directly in the smart contract. There is no IPFS or external server – everything is generated onchain.

Once minted, the NFT belongs to your wallet. You can view it, send it to another address, or trade it on compatible marketplaces.

The BaseCamp Learning NFT contract generates a random color onchain every time you mint. That color is used to draw a simple SVG square – your NFT image.

The contract also builds the JSON metadata onchain. Wallets and explorers read this metadata to show the name, description and image for each token.

Because everything is stored onchain, your NFT will continue to work as long as the Base network exists – even if any external servers go offline.

A wallet connected to Base App or MiniApp!!

Gas fees on Base testnet are tiny, and in many cases they are fully sponsored – so the mint may effectively be free for you.

Remember: this NFT lives on the testnet. It has no real-world value and is meant purely for learning and experimentation.

Try it yourself!

Use the button below to mint your own BaseCamp Learning NFT. The contract will generate a unique color, create the SVG image, and assign the new token to your wallet.

NFT Contract:

0x72610...c3c6d4

This is a Base Sepolia testnet collection – perfect for experimenting without risk.