Source Code
Overview
ETH Balance
0 ETH
More Info
ContractCreator
Multichain Info
N/A
Latest 15 from a total of 15 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Mint | 4528385 | 16 hrs ago | IN | 0 ETH | 0.00000285 | ||||
0xd67b06c1 | 4528035 | 16 hrs ago | IN | 0 ETH | 0.00000219 | ||||
Mint | 4527942 | 16 hrs ago | IN | 0 ETH | 0.00000301 | ||||
Mint | 4527937 | 16 hrs ago | IN | 0 ETH | 0.00000362 | ||||
Mint | 4483540 | 30 hrs ago | IN | 0 ETH | 0.00000309 | ||||
Mint | 4483038 | 30 hrs ago | IN | 0 ETH | 0.00000293 | ||||
Mint | 4483035 | 30 hrs ago | IN | 0 ETH | 0.00000293 | ||||
Mint | 4483033 | 30 hrs ago | IN | 0 ETH | 0.00000293 | ||||
Mint | 4483030 | 30 hrs ago | IN | 0 ETH | 0.00000293 | ||||
Mint | 4483027 | 30 hrs ago | IN | 0 ETH | 0.00000293 | ||||
Mint | 4483025 | 30 hrs ago | IN | 0 ETH | 0.00000293 | ||||
Mint | 4483023 | 30 hrs ago | IN | 0 ETH | 0.00000293 | ||||
Mint | 4483022 | 30 hrs ago | IN | 0 ETH | 0.00000293 | ||||
Mint | 4483019 | 30 hrs ago | IN | 0 ETH | 0.00000293 | ||||
Mint | 4483016 | 30 hrs ago | IN | 0 ETH | 0.0000033 |
Latest 25 internal transactions (View All)
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
4528385 | 16 hrs ago | 0 ETH | ||||
4528385 | 16 hrs ago | 0 ETH | ||||
4528385 | 16 hrs ago | 0 ETH | ||||
4528385 | 16 hrs ago | 0 ETH | ||||
4528385 | 16 hrs ago | 0 ETH | ||||
4528035 | 16 hrs ago | 0 ETH | ||||
4527942 | 16 hrs ago | 0 ETH | ||||
4527942 | 16 hrs ago | 0 ETH | ||||
4527942 | 16 hrs ago | 0 ETH | ||||
4527942 | 16 hrs ago | 0 ETH | ||||
4527942 | 16 hrs ago | 0 ETH | ||||
4527937 | 16 hrs ago | 0 ETH | ||||
4527937 | 16 hrs ago | 0 ETH | ||||
4527937 | 16 hrs ago | 0 ETH | ||||
4527937 | 16 hrs ago | 0 ETH | ||||
4527937 | 16 hrs ago | 0 ETH | ||||
4483540 | 30 hrs ago | 0 ETH | ||||
4483540 | 30 hrs ago | 0 ETH | ||||
4483540 | 30 hrs ago | 0 ETH | ||||
4483540 | 30 hrs ago | 0 ETH | ||||
4483540 | 30 hrs ago | 0 ETH | ||||
4483038 | 30 hrs ago | 0 ETH | ||||
4483038 | 30 hrs ago | 0 ETH | ||||
4483038 | 30 hrs ago | 0 ETH | ||||
4483038 | 30 hrs ago | 0 ETH |
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Source Code Verified (Exact Match)
Contract Name:
FixedSupplyNFT
Compiler Version
v0.8.24+commit.e11b9ed9
ZkSolc Version
v1.5.7
Optimization Enabled:
Yes with Mode 3
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.24; contract FixedSupplyNFT { uint256 public constant MAX_SUPPLY = 10000; // Максимальный supply uint256 public totalMinted; // Текущее количество сминченных токенов address public owner; mapping(uint256 => address) private tokenOwners; // Хранение владельцев токенов mapping(address => uint256[]) private ownedTokens; // Хранение токенов, принадлежащих владельцу event Mint(address indexed to, uint256 tokenId); event Transfer(address indexed from, address indexed to, uint256 tokenId); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); modifier onlyOwner() { require(msg.sender == owner, "Not the owner"); _; } constructor() { owner = msg.sender; totalMinted = 0; } function mint(address to) external onlyOwner { require(totalMinted < MAX_SUPPLY, "Max supply reached"); require(to != address(0), "Invalid address"); totalMinted++; uint256 tokenId = totalMinted; tokenOwners[tokenId] = to; ownedTokens[to].push(tokenId); emit Mint(to, tokenId); } function transfer(address to, uint256 tokenId) external { require(tokenOwners[tokenId] == msg.sender, "Not the token owner"); require(to != address(0), "Invalid address"); // Удаляем токен у текущего владельца uint256[] storage tokens = ownedTokens[msg.sender]; for (uint256 i = 0; i < tokens.length; i++) { if (tokens[i] == tokenId) { tokens[i] = tokens[tokens.length - 1]; tokens.pop(); break; } } // Переводим токен новому владельцу tokenOwners[tokenId] = to; ownedTokens[to].push(tokenId); emit Transfer(msg.sender, to, tokenId); } function tokensOfOwner(address _owner) external view returns (uint256[] memory) { return ownedTokens[_owner]; } function ownerOf(uint256 tokenId) external view returns (address) { return tokenOwners[tokenId]; } function transferOwnership(address newOwner) external onlyOwner { require(newOwner != address(0), "Invalid new owner address"); emit OwnershipTransferred(owner, newOwner); owner = newOwner; } // Позволяет контракту получать эфир receive() external payable {} function withdraw() external onlyOwner { uint256 balance = address(this).balance; require(balance > 0, "No funds to withdraw"); (bool success, ) = payable(owner).call{value: balance}(""); require(success, "Transfer failed"); } }
{ "evmVersion": "paris", "optimizer": { "enabled": true, "mode": "3" }, "outputSelection": { "*": { "*": [ "abi", "metadata" ], "": [ "ast" ] } }, "detectMissingLibraries": false, "forceEVMLA": false, "enableEraVMExtensions": false, "libraries": {} }
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
9c4d535b0000000000000000000000000000000000000000000000000000000000000000010000e1b7be8c7e41dcacfadae47845e4cb5297c1fab6136a31141b96a33f4700000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x000200000000000200050000000000020000006003100270000000b80330019700010000003103550000008004000039000000400040043f0000000100200190000000320000c13d000000040030008c000000410000413d000000000201043b000000e002200270000000bb0020009c000000450000a13d000000bc0020009c0000006b0000a13d000000bd0020009c000000940000613d000000be0020009c0000010b0000613d000000bf0020009c000002a70000c13d000000240030008c000002a70000413d0000000002000416000000000002004b000002a70000c13d0000000401100370000000000601043b000000c70060009c000002a70000213d0000000101000039000000000201041a000000c7012001970000000005000411000000000015004b000001300000c13d000000000006004b0000013b0000c13d000000ca01000041000000800010043f0000002001000039000000840010043f0000001901000039000000a40010043f000000cb01000041000000c40010043f000000cc01000041000002de000104300000000001000416000000000001004b000002a70000c13d0000000101000039000000000201041a000000b9022001970000000003000411000000000232019f000000000021041b000000000000041b000000200100003900000100001004430000012000000443000000ba01000041000002dd0001042e000000000003004b000002a70000c13d0000000001000019000002dd0001042e000000c20020009c000000740000213d000000c50020009c0000009b0000613d000000c60020009c000002a70000c13d0000000001000416000000000001004b000002a70000c13d0000000101000039000000000101041a000000c7011001970000000002000411000000000012004b000001300000c13d000000da010000410000000000100443000000000100041000000004001004430000000001000414000000b80010009c000000b801008041000000c001100210000000db011001c70000800a0200003902dc02d70000040f00000001002001900000013a0000613d000000000301043b000000000003004b000001510000c13d000000400100043d0000004402100039000000dd03000041000000000032043500000024021000390000001403000039000001a70000013d000000c00020009c000000a20000613d000000c10020009c000002a70000c13d0000000001000416000000000001004b000002a70000c13d0000000101000039000001060000013d000000c30020009c000000f90000613d000000c40020009c000002a70000c13d000000240030008c000002a70000413d0000000002000416000000000002004b000002a70000c13d0000000401100370000000000301043b000000c70030009c000002a70000213d0000000101000039000000000101041a000000c7011001970000000002000411000000000012004b000001300000c13d000000000100041a000027100010008c000001580000413d000000ca01000041000000800010043f0000002001000039000000840010043f0000001201000039000000a40010043f000000d801000041000000c40010043f000000cc01000041000002de000104300000000001000416000000000001004b000002a70000c13d000000000100041a000000800010043f000000d601000041000002dd0001042e0000000001000416000000000001004b000002a70000c13d0000271001000039000000800010043f000000d601000041000002dd0001042e000000240030008c000002a70000413d0000000002000416000000000002004b000002a70000c13d0000000401100370000000000101043b000000c70010009c000002a70000213d000000000010043f0000000301000039000000200010043f0000000001000414000000b80010009c000000b801008041000000c001100210000000cd011001c7000080100200003902dc02d70000040f0000000100200190000002a70000613d000000000101043b000000000301041a000000400200043d000500000002001d000400000003001d0000000002320436000300000002001d000000000010043f0000000001000414000000b80010009c000000b801008041000000c001100210000000d0011001c7000080100200003902dc02d70000040f0000000100200190000002a70000613d0000000405000029000000000005004b00000003060000290000000002060019000000d60000613d000000000101043b00000000030000190000000002060019000000000401041a000000000242043600000001011000390000000103300039000000000053004b000000d00000413d000000050300002900000000013200490000001f01100039000000de021001970000000001320019000000000021004b00000000020000390000000102004039000000d30010009c000002460000213d0000000100200190000002460000c13d000000400010043f00000020020000390000000002210436000000000303043300000000003204350000004002100039000000000003004b000000f00000613d0000000004000019000000006506043400000000025204360000000104400039000000000034004b000000eb0000413d0000000002120049000000b80020009c000000b8020080410000006002200210000000b80010009c000000b8010080410000004001100210000000000112019f000002dd0001042e000000240030008c000002a70000413d0000000002000416000000000002004b000002a70000c13d0000000401100370000000000101043b000000000010043f0000000201000039000000200010043f0000004002000039000000000100001902dc02bd0000040f000000000101041a000000c701100197000000800010043f000000d601000041000002dd0001042e000000440030008c000002a70000413d0000000002000416000000000002004b000002a70000c13d0000000402100370000000000202043b000100000002001d000000c70020009c000002a70000213d0000002401100370000000000101043b000400000001001d000000000010043f0000000201000039000000200010043f0000000001000414000000b80010009c000000b801008041000000c001100210000000cd011001c7000080100200003902dc02d70000040f0000000100200190000002a70000613d000000000101043b000000000101041a000000c7011001970000000002000411000000000021004b000001640000c13d000000010000006b000001f90000c13d000000400100043d0000004402100039000000d503000041000001a40000013d000000ca01000041000000800010043f0000002001000039000000840010043f0000000d01000039000000a40010043f000000d901000041000000c40010043f000000cc01000041000002de00010430000000000001042f000400000002001d0000000001000414000000b80010009c000000b801008041000000c001100210000000c8011001c70000800d020000390000000303000039000000c904000041000500000006001d000000050600002902dc02d20000040f00000005030000290000000100200190000002a70000613d0000000401000029000000b901100197000000000131019f0000000102000039000000000012041b0000000001000019000002dd0001042e00000000010004140000000004000411000000040040008c0000016b0000c13d00000000010000310000000108000039000001770000013d000000000003004b000001b20000c13d000000ca01000041000000800010043f0000002001000039000000840010043f0000000f01000039000000a40010043f000000d501000041000000c40010043f000000cc01000041000002de00010430000000400100043d0000004402100039000000ce03000041000000000032043500000024021000390000001303000039000001a70000013d000000b80010009c000000b801008041000000c001100210000000c8011001c70000800902000039000000000500001902dc02d20000040f000000010820018f00010000000103550000006001100270000000b80010019d000000b801100197000000000001004b0000019f0000613d0000001f03100039000000de033001970000003f03300039000000de04300197000000400300043d0000000004430019000000000034004b00000000050000390000000105004039000000d30040009c000002460000213d0000000100500190000002460000c13d000000400040043f0000000005130436000000de021001980000001f0310018f00000000012500190000000104000367000001920000613d000000000604034f000000006706043c0000000005750436000000000015004b0000018e0000c13d000000000003004b0000019f0000613d000000000224034f0000000303300210000000000401043300000000043401cf000000000434022f000000000202043b0000010003300089000000000232022f00000000023201cf000000000242019f0000000000210435000000000008004b000000430000c13d000000400100043d0000004402100039000000dc03000041000000000032043500000024021000390000000f030000390000000000320435000000ca020000410000000000210435000000040210003900000020030000390000000000320435000000b80010009c000000b8010080410000004001100210000000cf011001c7000002de000104300000000101100039000000000010041b000400000001001d000000000010043f0000000201000039000000200010043f0000000001000414000000b80010009c000000b801008041000000c001100210000000cd011001c70000801002000039000500000003001d02dc02d70000040f00000005030000290000000100200190000002a70000613d000000000101043b000000000201041a000000b902200197000000000232019f000000000021041b000000000030043f0000000301000039000000200010043f0000000001000414000000b80010009c000000b801008041000000c001100210000000cd011001c7000080100200003902dc02d70000040f0000000100200190000002a70000613d000000000101043b000000000201041a000000d30020009c000002460000213d000300000002001d0000000102200039000000000021041b000000000010043f0000000001000414000000b80010009c000000b801008041000000c001100210000000d0011001c7000080100200003902dc02d70000040f00000001002001900000000505000029000002a70000613d000000000101043b00000003011000290000000402000029000000000021041b000000400100043d0000000000210435000000b80010009c000000b80100804100000040011002100000000002000414000000b80020009c000000b802008041000000c002200210000000000112019f000000d0011001c70000800d020000390000000203000039000000d704000041000002a40000013d000000000020043f0000000301000039000000200010043f0000000001000414000000b80010009c000000b801008041000000c001100210000000cd011001c7000080100200003902dc02d70000040f0000000100200190000002a70000613d000000000201043b000000000102041a000000000001004b000002220000613d000500000000001d000300000002001d000200000001001d000000000020043f0000000001000414000000b80010009c000000b801008041000000c001100210000000d0011001c7000080100200003902dc02d70000040f0000000100200190000002a70000613d000000000101043b000000050400002900000000024100190000000305000029000000000105041a000000000202041a000000040020006c0000024c0000613d0000000002050019000500010040003d000000050010006b0000020b0000413d0000000401000029000000000010043f0000000201000039000000200010043f0000000001000414000000b80010009c000000b801008041000000c001100210000000cd011001c7000080100200003902dc02d70000040f0000000100200190000002a70000613d000000000101043b000000000201041a000000b9022001970000000103000029000000000232019f000000000021041b000000000030043f0000000301000039000000200010043f0000000001000414000000b80010009c000000b801008041000000c001100210000000cd011001c7000080100200003902dc02d70000040f0000000100200190000002a70000613d000000000101043b000000000201041a000500000002001d000000d30020009c000002830000a13d000000d101000041000000000010043f0000004101000039000000040010043f000000d201000041000002de0001043000000002020000290002000100200092000000020010006c0000027d0000a13d0000000301000029000000000010043f0000000001000414000000b80010009c000000b801008041000000c001100210000000d0011001c7000080100200003902dc02d70000040f0000000100200190000002a70000613d000000000101043b0000000302000029000000000202041a000000050020006c0000027d0000a13d0000000201100029000000000101041a000200000001001d0000000301000029000000000010043f0000000001000414000000b80010009c000000b801008041000000c001100210000000d0011001c7000080100200003902dc02d70000040f0000000100200190000002a70000613d000000000101043b00000005011000290000000202000029000000000021041b0000000301000029000000000101041a000500000001001d000000000001004b000002a90000c13d000000d101000041000000000010043f0000003101000039000000040010043f000000d201000041000002de00010430000000d101000041000000000010043f0000003201000039000000040010043f000000d201000041000002de0001043000000005020000290000000102200039000000000021041b000000000010043f0000000001000414000000b80010009c000000b801008041000000c001100210000000d0011001c7000080100200003902dc02d70000040f0000000100200190000002a70000613d000000000101043b00000005011000290000000402000029000000000021041b000000400100043d0000000000210435000000b80010009c000000b80100804100000040011002100000000002000414000000b80020009c000000b802008041000000c002200210000000000112019f000000d0011001c70000800d020000390000000303000039000000d4040000410000000005000411000000010600002902dc02d20000040f0000000100200190000000430000c13d0000000001000019000002de000104300000000301000029000000000010043f0000000001000414000000b80010009c000000b801008041000000c001100210000000d0011001c7000080100200003902dc02d70000040f0000000100200190000002a70000613d0000000502000029000000010220008a000000000101043b0000000001210019000000000001041b0000000301000029000000000021041b000002220000013d000000000001042f000000b80010009c000000b8010080410000004001100210000000b80020009c000000b8020080410000006002200210000000000112019f0000000002000414000000b80020009c000000b802008041000000c002200210000000000112019f000000c8011001c7000080100200003902dc02d70000040f0000000100200190000002d00000613d000000000101043b000000000001042d0000000001000019000002de00010430000002d5002104210000000102000039000000000001042d0000000002000019000000000001042d000002da002104230000000102000039000000000001042d0000000002000019000000000001042d000002dc00000432000002dd0001042e000002de00010430000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffff00000000000000000000000000000000000000000000000200000000000000000000000000000040000001000000000000000000000000000000000000000000000000000000000000000000000000008462151b00000000000000000000000000000000000000000000000000000000a2309ff700000000000000000000000000000000000000000000000000000000a2309ff800000000000000000000000000000000000000000000000000000000a9059cbb00000000000000000000000000000000000000000000000000000000f2fde38b000000000000000000000000000000000000000000000000000000008462151c000000000000000000000000000000000000000000000000000000008da5cb5b000000000000000000000000000000000000000000000000000000006352211d000000000000000000000000000000000000000000000000000000006352211e000000000000000000000000000000000000000000000000000000006a6278420000000000000000000000000000000000000000000000000000000032cb6b0c000000000000000000000000000000000000000000000000000000003ccfd60b000000000000000000000000ffffffffffffffffffffffffffffffffffffffff02000000000000000000000000000000000000000000000000000000000000008be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e008c379a000000000000000000000000000000000000000000000000000000000496e76616c6964206e6577206f776e6572206164647265737300000000000000000000000000000000000000000000000000006400000080000000000000000002000000000000000000000000000000000000400000000000000000000000004e6f742074686520746f6b656e206f776e657200000000000000000000000000000000000000000000000000000000000000006400000000000000000000000002000000000000000000000000000000000000200000000000000000000000004e487b71000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef496e76616c69642061646472657373000000000000000000000000000000000000000000000000000000000000000000000000200000008000000000000000000f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968854d617820737570706c79207265616368656400000000000000000000000000004e6f7420746865206f776e6572000000000000000000000000000000000000009cc7f708afc65944829bd487b90b72536b1951864fbfc14e125fc972a6507f3902000002000000000000000000000000000000240000000000000000000000005472616e73666572206661696c656400000000000000000000000000000000004e6f2066756e647320746f207769746864726177000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0000000000000000000000000000000000000000000000000000000000000000053f51024a57b19a71829c530a5a1b094c5cf8e956c18e2a9580d604dc3b4797f
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.