Source Code
Overview
ETH Balance
0.00045 ETH
Token Holdings
More Info
ContractCreator
Multichain Info
N/A
Latest 24 from a total of 24 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Paint Pixels | 5867468 | 8 hrs ago | IN | 0.00009 ETH | 0.00003395 | ||||
Paint Pixels | 5831594 | 23 hrs ago | IN | 0.00009 ETH | 0.00000336 | ||||
Paint Pixels | 5828780 | 24 hrs ago | IN | 0.00009 ETH | 0.00000223 | ||||
Paint Pixels | 5828770 | 24 hrs ago | IN | 0.00009 ETH | 0.00000223 | ||||
Paint Pixels | 5828662 | 24 hrs ago | IN | 0.00009 ETH | 0.0000033 | ||||
Paint Pixels | 5828622 | 24 hrs ago | IN | 0 ETH | 0.00000282 | ||||
Withdraw Fees | 5828213 | 24 hrs ago | IN | 0 ETH | 0.00000218 | ||||
Paint Pixels | 5827989 | 24 hrs ago | IN | 0.00009 ETH | 0.00000385 | ||||
Paint Pixels | 5827921 | 24 hrs ago | IN | 0 ETH | 0.00000211 | ||||
Paint Pixels | 5827870 | 24 hrs ago | IN | 0 ETH | 0.00000316 | ||||
Paint Pixels | 5827398 | 24 hrs ago | IN | 0 ETH | 0.00000212 | ||||
Paint Pixels | 5827377 | 24 hrs ago | IN | 0 ETH | 0.00000399 | ||||
Paint Pixels | 5827291 | 24 hrs ago | IN | 0.00009 ETH | 0.00000241 | ||||
Paint Pixels | 5827265 | 24 hrs ago | IN | 0.00009 ETH | 0.00000232 | ||||
Paint Pixels | 5827244 | 24 hrs ago | IN | 0.00009 ETH | 0.00000223 | ||||
Paint Pixels | 5827215 | 25 hrs ago | IN | 0.00009 ETH | 0.00000526 | ||||
Paint Pixels | 5804050 | 33 hrs ago | IN | 0.00009 ETH | 0.0000023 | ||||
Paint Pixels | 5804023 | 33 hrs ago | IN | 0 ETH | 0.00000212 | ||||
Paint Pixels | 5803633 | 33 hrs ago | IN | 0 ETH | 0.00000368 | ||||
Paint Pixels | 5803543 | 33 hrs ago | IN | 0.00009 ETH | 0.00000223 | ||||
Paint Pixels | 5803340 | 33 hrs ago | IN | 0.00009 ETH | 0.00000474 | ||||
Paint Pixels | 5801969 | 33 hrs ago | IN | 0.00009 ETH | 0.00000424 | ||||
Paint Pixels | 5717809 | 2 days ago | IN | 0.00003 ETH | 0.00000223 | ||||
Paint Pixels | 5717803 | 2 days ago | IN | 0.00009 ETH | 0.00000289 |
Latest 25 internal transactions (View All)
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
5867468 | 8 hrs ago | 0 ETH | ||||
5867468 | 8 hrs ago | 0 ETH | ||||
5867468 | 8 hrs ago | 0 ETH | ||||
5867468 | 8 hrs ago | 0 ETH | ||||
5867468 | 8 hrs ago | 0.00009 ETH | ||||
5831594 | 23 hrs ago | 0 ETH | ||||
5831594 | 23 hrs ago | 0 ETH | ||||
5831594 | 23 hrs ago | 0 ETH | ||||
5831594 | 23 hrs ago | 0 ETH | ||||
5831594 | 23 hrs ago | 0.00009 ETH | ||||
5828780 | 24 hrs ago | 0 ETH | ||||
5828780 | 24 hrs ago | 0 ETH | ||||
5828780 | 24 hrs ago | 0 ETH | ||||
5828780 | 24 hrs ago | 0 ETH | ||||
5828780 | 24 hrs ago | 0.00009 ETH | ||||
5828770 | 24 hrs ago | 0 ETH | ||||
5828770 | 24 hrs ago | 0 ETH | ||||
5828770 | 24 hrs ago | 0 ETH | ||||
5828770 | 24 hrs ago | 0 ETH | ||||
5828770 | 24 hrs ago | 0.00009 ETH | ||||
5828662 | 24 hrs ago | 0 ETH | ||||
5828662 | 24 hrs ago | 0 ETH | ||||
5828662 | 24 hrs ago | 0 ETH | ||||
5828662 | 24 hrs ago | 0 ETH | ||||
5828662 | 24 hrs ago | 0.00009 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:
PixelPainting
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 PixelPainting { address public constant FEE_RECIPIENT = 0x5255eF6956a77143D3F18978555c6cdCd4F2aA0A; uint256 public constant FIXED_FEE_PER_PIXEL = 30000000000000; // 0.00003 ETH per pixel event PixelsPainted( address indexed user, bytes32 pixelsHash, uint256 timestamp, bytes32 transactionId ); function paintPixels(bytes32 pixelsHash, uint256 numPixels) external payable { // If sender is fee recipient, no payment required if (msg.sender != FEE_RECIPIENT) { require(msg.value == FIXED_FEE_PER_PIXEL * numPixels, "Must send exactly 0.00003 ETH per pixel"); } bytes32 transactionId = keccak256( abi.encodePacked( msg.sender, pixelsHash, block.timestamp, block.number ) ); emit PixelsPainted( msg.sender, pixelsHash, block.timestamp, transactionId ); } function withdrawFees() external { require(msg.sender == FEE_RECIPIENT, "Only fee recipient can withdraw"); uint256 balance = address(this).balance; require(balance > 0, "No fees to withdraw"); (bool success, ) = payable(FEE_RECIPIENT).call{value: balance}(""); require(success, "Withdrawal failed"); } }
{ "evmVersion": "paris", "optimizer": { "enabled": true, "mode": "3" }, "outputSelection": { "*": { "*": [ "abi", "metadata" ], "": [ "ast" ] } }, "detectMissingLibraries": false, "forceEVMLA": false, "enableEraVMExtensions": false, "libraries": {} }
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"bytes32","name":"pixelsHash","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"transactionId","type":"bytes32"}],"name":"PixelsPainted","type":"event"},{"inputs":[],"name":"FEE_RECIPIENT","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FIXED_FEE_PER_PIXEL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"pixelsHash","type":"bytes32"},{"internalType":"uint256","name":"numPixels","type":"uint256"}],"name":"paintPixels","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdrawFees","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
9c4d535b000000000000000000000000000000000000000000000000000000000000000001000069d0bd0849dc583e4d2fc47d2d02594c18d30974471238c0dc66572dc600000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x00020000000000020000008003000039000000400030043f0000000100200190000000600000c13d00000060021002700000004502200197000000040020008c000000970000413d000000000301043b000000e003300270000000470030009c000000680000213d0000004a0030009c000000730000613d0000004b0030009c000000970000c13d000000440020008c000000970000413d0000000402100370000000000502043b00000000040004110000004c0040009c000000210000613d0000002401100370000000000201043b0000004e012000d10000004e0310012a000000000032004b000000a40000c13d0000000002000416000000000012004b000000aa0000c13d0000006001400210000000a00010043f000200000005001d000000b40050043f000000550100004100000000001004430000000001000414000000450010009c0000004501008041000000c00110021000000056011001c70000800b02000039010e01090000040f0000000100200190000000990000613d000000000101043b000100000001001d000000d40010043f000000570100004100000000001004430000000001000414000000450010009c0000004501008041000000c00110021000000056011001c70000800b02000039010e01090000040f0000000100200190000000990000613d000000000101043b000000f40010043f0000007401000039000000800010043f0000012001000039000000400010043f0000000001000414000000450010009c0000004501008041000000c00110021000000058011001c70000801002000039010e01090000040f0000000100200190000000970000613d000000000101043b0000000202000029000001200020043f0000000102000029000001400020043f000001600010043f0000000001000414000000450010009c0000004501008041000000c00110021000000059011001c70000800d0200003900000002030000390000005a040000410000000005000411010e01040000040f0000000100200190000000970000613d000000c40000013d0000000001000416000000000001004b000000970000c13d00000020010000390000010000100443000001200000044300000046010000410000010f0001042e000000480030009c000000900000613d000000490030009c000000970000c13d0000000001000416000000000001004b000000970000c13d0000004c01000041000000800010043f0000004d010000410000010f0001042e0000000001000416000000000001004b000000970000c13d00000000010004110000004c0010009c0000009a0000c13d0000005d010000410000000000100443000000000100041000000004001004430000000001000414000000450010009c0000004501008041000000c0011002100000005e011001c70000800a02000039010e01090000040f0000000100200190000000990000613d000000000301043b000000000003004b000000b60000c13d000000400100043d00000044021000390000006603000041000000000032043500000024021000390000001303000039000000f20000013d0000000001000416000000000001004b000000970000c13d0000004e01000041000000800010043f0000004d010000410000010f0001042e00000000010000190000011000010430000000000001042f0000005101000041000000800010043f0000002001000039000000840010043f0000001f01000039000000a40010043f0000005b01000041000000c40010043f0000005c0100004100000110000104300000004f01000041000000000010043f0000001101000039000000040010043f000000500100004100000110000104300000005101000041000000800010043f0000002001000039000000840010043f0000002701000039000000a40010043f0000005201000041000000c40010043f0000005301000041000000e40010043f000000540100004100000110000104300000000001000414000000450010009c0000004501008041000000c0011002100000005f011001c700008009020000390000004c040000410000000005000019010e01040000040f00000060031002700000004503300198000000c60000c13d0000000100200190000000ec0000613d00000000010000190000010f0001042e0000001f0430003900000060044001970000003f044000390000006104400197000000400500043d0000000004450019000000000054004b00000000060000390000000106004039000000620040009c000000fd0000213d0000000100600190000000fd0000c13d000000400040043f0000001f0430018f000000000635043600000063053001980000000003560019000000de0000613d000000000701034f000000007807043c0000000006860436000000000036004b000000da0000c13d000000000004004b000000c20000613d000000000151034f0000000304400210000000000503043300000000054501cf000000000545022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000151019f0000000000130435000000c20000013d000000400100043d00000044021000390000006403000041000000000032043500000024021000390000001103000039000000000032043500000051020000410000000000210435000000040210003900000020030000390000000000320435000000450010009c0000004501008041000000400110021000000065011001c700000110000104300000004f01000041000000000010043f0000004101000039000000040010043f00000050010000410000011000010430000000000001042f00000107002104210000000102000039000000000001042d0000000002000019000000000001042d0000010c002104230000000102000039000000000001042d0000000002000019000000000001042d0000010e000004320000010f0001042e000001100001043000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffff000000020000000000000000000000000000004000000100000000000000000000000000000000000000000000000000000000000000000000000000c2d0f03800000000000000000000000000000000000000000000000000000000c2d0f03900000000000000000000000000000000000000000000000000000000ebd0905400000000000000000000000000000000000000000000000000000000476343ee00000000000000000000000000000000000000000000000000000000570ee44c0000000000000000000000005255ef6956a77143d3f18978555c6cdcd4f2aa0a000000000000000000000000000000000000002000000080000000000000000000000000000000000000000000000000000000000000000000001b48eb57e0004e487b7100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002400000000000000000000000008c379a0000000000000000000000000000000000000000000000000000000004d7573742073656e642065786163746c7920302e3030303033204554482070657220706978656c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084000000800000000000000000796b89b91644bc98cd93958e4c9038275d622183e25ac5af08cc6b5d95539132020000020000000000000000000000000000000400000000000000000000000042cbb15ccdc3cad6266b0e7a08c0454b23bf29dc2df74b6f3c209e9336465bd10200000000000000000000000000000000000074000000a000000000000000000200000000000000000000000000000000000060000001200000000000000000f8cc0e0e04d3f7839c9b20b27090f01fda591ebd44d4c0b470a01e0ffcb0464e4f6e6c792066656520726563697069656e742063616e2077697468647261770000000000000000000000000000000000000000640000008000000000000000009cc7f708afc65944829bd487b90b72536b1951864fbfc14e125fc972a6507f390200000200000000000000000000000000000024000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001ffffffe000000000000000000000000000000000000000000000000000000003ffffffe0000000000000000000000000000000000000000000000000ffffffffffffffff00000000000000000000000000000000000000000000000000000000ffffffe05769746864726177616c206661696c656400000000000000000000000000000000000000000000000000000000000000000000640000000000000000000000004e6f206665657320746f207769746864726177000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b9213ce03b6bf563e303505157f045782f6291e427cbd2a99eeaf33706c5f510
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.