Balance
0 $ZTH
Type
Token
Transactions
326
Name
Zenith Farm NFT
Symbol
ZFN
Decimals
18
Total Supply
0 ZFN
This contract's methods and events are decoded across the explorer.
Prefer source verification? Verify from Foundry or Hardhat against the Etherscan-compatible API to publish the full source too.
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;
contract FarmNFT {
string public name = "Zenith Farm NFT";
string public symbol = "ZFN";
uint256 public totalSupply;
mapping(uint256 => address) public ownerOf;
mapping(address => uint256) public balanceOf;
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
function mint() external returns (uint256) {
totalSupply += 1;
uint256 id = totalSupply;
ownerOf[id] = msg.sender;
balanceOf[msg.sender] += 1;
emit Transfer(address(0), msg.sender, id);
return id;
}
}No transactions found
This address has no recorded transactions yet