Blogging — New Crypto Gems

How to Check If a Token Can Be Minted

Written by Evelyn Carter — Saturday, December 20, 2025
How to Check If a Token Can Be Minted

How to Check If a Token Can Be Minted If you are building or using a crypto project, you must know how to check if a token can be minted. This helps you avoid...



How to Check If a Token Can Be Minted


If you are building or using a crypto project, you must know how to check if a token can be minted.
This helps you avoid failed transactions, scams, or unexpected inflation of a token supply.
The exact process depends on the token standard, the contract code, and the tools you use.

This guide explains how to check mint status for ERC‑20 tokens, NFTs such as ERC‑721 and ERC‑1155,
and custom contracts. You will learn how to use block explorers, read key functions, and test minting safely.

Why mintability matters before you send a transaction

Minting is the action that creates new tokens and adds them to the supply.
If you send a mint transaction when minting is disabled or capped, you will usually lose gas fees.
In worse cases, you might interact with a fake contract that mints a useless token.

Checking if a token can be minted helps you answer three questions.
Can new tokens still be created? Who is allowed to mint? Under what conditions can minting happen?
Once you know these answers, you can decide if the token fits your risk level.

Core concepts for checking if a token can be minted

Before you run checks, you need a basic picture of how minting works in smart contracts.
Most serious projects follow standards like ERC‑20, ERC‑721, or ERC‑1155, but many add custom rules on top.

In smart contracts, minting is usually controlled by a few elements:

  • Mint function: A function such as mint, safeMint, or mintTo that creates tokens.
  • Access control: Rules that decide who can call the mint function, such as onlyOwner or onlyMinter.
  • Supply limits: Variables like totalSupply and maxSupply that cap the number of tokens.
  • Minting flags: Booleans such as mintingFinished, paused, or publicMintOpen.
  • Time or block checks: Conditions like block.timestamp > startTime or end dates.

Most checks you run will focus on these elements.
You either read them in a block explorer or call them directly using a wallet or a script.

Quick checklist: how to check if token can be minted safely

Use this high‑level checklist as a fast reference before you dive into details.
You can follow it for both fungible tokens and NFTs on any EVM chain.

  1. Confirm the correct contract address from an official source.
  2. Open the contract on a trusted block explorer like Etherscan.
  3. Check if the contract source is verified and matches the deployed bytecode.
  4. Look for obvious mint functions in the code or “Read/Write Contract” tabs.
  5. Check supply variables such as totalSupply and maxSupply if present.
  6. Look for flags or functions that disable minting, like finishMinting or paused.
  7. Review access control: who can call the mint function (owner, minter role, public)?
  8. Check for time‑based or sale‑phase conditions that limit minting.
  9. Use a read‑only call or simulation to test mint conditions without sending real funds.
  10. Send a small test transaction if needed, and check the result before scaling up.

This checklist gives you a safe path from basic contract discovery to a live mint test.
You can stop early if any step reveals that minting is closed or restricted.

Using block explorers to inspect mint functions

Block explorers are the easiest way to check if a token can be minted without writing code.
The exact layout varies by explorer, but the logic is the same across networks.

Step 1: Verify the token contract address

First, confirm that you are looking at the correct contract.
Get the address from an official website, GitHub repo, or well‑known listing, not from random chat links.
Paste the address into the explorer search bar.

Check that the token name, symbol, and decimals match what you expect.
If the contract is not verified or details look wrong, pause and confirm with another source.

Step 2: Open the contract and find mint‑related functions

In most explorers, you will see a “Contract” tab with “Code”, “Read Contract”, and “Write Contract” sections.
If the source is verified, you can search the code for keywords.

Look for function names such as mint, safeMint, mintTo, mintPublic,
or for interfaces like ERC20Mintable or Ownable.
If you see no mint function and the token already has supply, the project may have minted everything at deployment.

Checking supply limits: totalSupply, cap, and maxSupply

Once you locate the contract, check how the supply is controlled.
Many tokens expose one or more supply‑related variables in the “Read Contract” section.

Common patterns include a simple totalSupply for ERC‑20,
a maxSupply or cap variable, or a token ID counter for NFTs.
Your goal is to see if there is room for new tokens under the cap.

How to read supply values

Call totalSupply and, if present, maxSupply or cap in the “Read Contract” tab.
Compare the numbers after adjusting for decimals. For example, if decimals equal 18,
you must divide the raw value by 10^18 to get the human‑readable amount.

If totalSupply equals maxSupply, minting is usually finished.
If totalSupply is lower than the cap, the contract may still allow new mints,
subject to access control and time rules.

Reading minting flags and pause controls

Many contracts use boolean flags to control whether minting is active.
These flags are often easier to read than the full code.

Look for variables or functions like mintingFinished, isMintingAllowed,
publicSaleActive, presaleActive, or paused.
You can usually call them in the “Read Contract” section to see a true/false value.

Interpreting common flags

If a contract follows a “finish minting” pattern, you might see a function like finishMinting().
Once called, this function often flips a flag that blocks future mints forever.
If mintingFinished is true, you should treat the token as non‑mintable.

For NFT drops, flags often mark which sale phase is active.
For example, publicSaleActive might need to be true for anyone to mint,
while presaleActive could require a whitelist proof.
A global paused flag may block all mint actions until the owner unpauses.

Understanding who is allowed to mint

Even if a token can be minted in theory, you may not be allowed to mint it yourself.
Access control decides who can call the mint function.

Common patterns include:

Many ERC‑20 contracts use an onlyOwner modifier on mint().
That means only the owner address can create new supply.
Some projects use role‑based access control like MINTER_ROLE,
where several addresses can mint.

NFT contracts often have separate functions for public and owner mints.
For example, publicMint() for users and ownerMint() for the team.
Check which function you plan to call and what conditions it checks.

How to check if token can be minted in your wallet or dApp

After you study the contract, you can test minting using your wallet or a script.
Start with a read‑only or simulated call before you risk gas or funds.

Dry‑running a mint with read calls or simulation

Some explorers and wallets support “simulate transaction” features.
You can input a mint call and see if it would revert without sending a real transaction.
This is useful for contracts with complex checks.

If you use a library such as ethers.js or web3.js, you can call the mint function with callStatic
or a similar method. If the static call reverts, the real transaction will also fail.

Sending a small test mint

If simulation is not available, send the smallest safe mint transaction first.
For NFTs, mint one token. For ERC‑20, mint the minimum allowed amount.

After the transaction, check the token balance and the contract events.
If the mint succeeds and matches your expectations, you can decide whether to mint more.

Special cases: ERC‑20 vs NFTs vs custom tokens

Different token types use different patterns, so your checks will change slightly.
Still, the same basic questions apply: is supply capped, is minting active, who can mint?

ERC‑20 mint checks

For ERC‑20 tokens, focus on totalSupply, any cap or maxSupply,
and the access control on mint().
Many ERC‑20s are fully minted at launch and then locked, with no public minting.

If the owner can still mint new tokens, consider the inflation risk.
The token may be technically mintable even if there is no user‑facing mint function.

NFT (ERC‑721 / ERC‑1155) mint checks

For NFTs, check the maximum token ID, collection size, and sale flags.
Many NFT contracts expose a maxSupply and a counter such as totalMinted or tokenIdTracker.

You also need to check price and per‑wallet limits in the mint function.
These checks can cause a revert even if supply is still available.

Custom or upgradeable tokens

Some projects use upgradeable contracts or custom logic.
In these cases, mint rules may change over time through governance or admin actions.

Look for proxy patterns and implementation contracts in the explorer.
If the contract is upgradeable, mintability today may not match mintability in the future.

Risk checks before interacting with any mint function

Before you mint, do a quick risk review.
Many scams use fake mint sites or contracts that drain wallets or mint worthless tokens.

Check that the mint site loads the same contract address you inspected.
Use a wallet that supports transaction previews and check the “To” address and method name.
Avoid signing blind approvals or permit signatures that you do not understand.

If anything looks off, stop and verify with trusted community channels.
A few extra minutes of checking are cheaper than a failed or malicious mint.