Contract 0xed9496b899d071247df7cb776d211a2b4dab422e 2

Txn Hash Method
Block
From
To
Value [Txn Fee]
0xbbd4f1aeb63e6ff6a4ed61b37feb73504a4d4e4f25d28b958cf5ca7fe1652d910x608060404494542023-05-27 2:10:52125 days 14 hrs ago0x9de0058583644d737b05ef09f029577592bd37e2 IN  Create: GalaxyCoder0 ETH0.00027595524
[ Download CSV Export 
Parent Txn Hash Block From To Value
Index Block
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
GalaxyCoder

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at zkevm.polygonscan.com on 2023-05-27
*/

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

contract GalaxyCoder {

    address public owner;
    mapping (address => uint) public payments;

    constructor() {
        owner = msg.sender;
    }

    function payForNFT() public payable {
        payments[msg.sender] = msg.value;
    }

    function withdrawAll() public {
        address payable _to = payable(owner);
        address _thisContract = address(this);
        _to.transfer(_thisContract.balance);
    }
}

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"payForNFT","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"payments","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550610300806100606000396000f3fe60806040526004361061003f5760003560e01c8063849a777f14610044578063853828b61461004e5780638da5cb5b14610065578063e2982c2114610090575b600080fd5b61004c6100cd565b005b34801561005a57600080fd5b50610063610113565b005b34801561007157600080fd5b5061007a6101a0565b604051610087919061021d565b60405180910390f35b34801561009c57600080fd5b506100b760048036038101906100b29190610269565b6101c4565b6040516100c491906102af565b60405180910390f35b34600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060003090508173ffffffffffffffffffffffffffffffffffffffff166108fc8273ffffffffffffffffffffffffffffffffffffffff16319081150290604051600060405180830381858888f1935050505015801561019b573d6000803e3d6000fd5b505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60016020528060005260406000206000915090505481565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610207826101dc565b9050919050565b610217816101fc565b82525050565b6000602082019050610232600083018461020e565b92915050565b600080fd5b610246816101fc565b811461025157600080fd5b50565b6000813590506102638161023d565b92915050565b60006020828403121561027f5761027e610238565b5b600061028d84828501610254565b91505092915050565b6000819050919050565b6102a981610296565b82525050565b60006020820190506102c460008301846102a0565b9291505056fea26469706673582212202218e6065e96b7d80b0eb0242b3bb81f400051c3678912f31315666f32c48ff364736f6c63430008120033

Deployed ByteCode Sourcemap

62:443:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;228:87;;;:::i;:::-;;323:179;;;;;;;;;;;;;:::i;:::-;;92:20;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;119:41;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;228:87;298:9;275:8;:20;284:10;275:20;;;;;;;;;;;;;;;:32;;;;228:87::o;323:179::-;364:19;394:5;;;;;;;;;;;364:36;;411:21;443:4;411:37;;459:3;:12;;:35;472:13;:21;;;459:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;353:149;;323:179::o;92:20::-;;;;;;;;;;;;:::o;119:41::-;;;;;;;;;;;;;;;;;:::o;7:126:1:-;44:7;84:42;77:5;73:54;62:65;;7:126;;;:::o;139:96::-;176:7;205:24;223:5;205:24;:::i;:::-;194:35;;139:96;;;:::o;241:118::-;328:24;346:5;328:24;:::i;:::-;323:3;316:37;241:118;;:::o;365:222::-;458:4;496:2;485:9;481:18;473:26;;509:71;577:1;566:9;562:17;553:6;509:71;:::i;:::-;365:222;;;;:::o;674:117::-;783:1;780;773:12;920:122;993:24;1011:5;993:24;:::i;:::-;986:5;983:35;973:63;;1032:1;1029;1022:12;973:63;920:122;:::o;1048:139::-;1094:5;1132:6;1119:20;1110:29;;1148:33;1175:5;1148:33;:::i;:::-;1048:139;;;;:::o;1193:329::-;1252:6;1301:2;1289:9;1280:7;1276:23;1272:32;1269:119;;;1307:79;;:::i;:::-;1269:119;1427:1;1452:53;1497:7;1488:6;1477:9;1473:22;1452:53;:::i;:::-;1442:63;;1398:117;1193:329;;;;:::o;1528:77::-;1565:7;1594:5;1583:16;;1528:77;;;:::o;1611:118::-;1698:24;1716:5;1698:24;:::i;:::-;1693:3;1686:37;1611:118;;:::o;1735:222::-;1828:4;1866:2;1855:9;1851:18;1843:26;;1879:71;1947:1;1936:9;1932:17;1923:6;1879:71;:::i;:::-;1735:222;;;;:::o

Swarm Source

ipfs://2218e6065e96b7d80b0eb0242b3bb81f400051c3678912f31315666f32c48ff3
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.