ETH Price: $3,330.37 (+4.24%)
 

Overview

ETH Balance

0.000002011 ETH

Eth Value

Less Than $0.01 (@ $3,330.37/ETH)

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Pay For NFT162952712022-12-30 4:42:59756 days ago1672375379IN
0xf91fe3E2...0A919113E
0 ETH0.0005737613.23145937
Pay For NFT162952642022-12-30 4:41:35756 days ago1672375295IN
0xf91fe3E2...0A919113E
0.00000001 ETH0.0005737613.23145937
Pay For NFT162161542022-12-19 3:48:35767 days ago1671421715IN
0xf91fe3E2...0A919113E
0.000001 ETH0.0004968711.45831976
Pay For NFT162161502022-12-19 3:47:47767 days ago1671421667IN
0xf91fe3E2...0A919113E
0.000001 ETH0.0004759910.97664096

Advanced mode:
Parent Transaction Hash Block
From
To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
GalaxyCoder

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2022-12-13
*/

// 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 Security Audit

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"}]

608060405234801561001057600080fd5b50336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550610300806100606000396000f3fe60806040526004361061003f5760003560e01c8063849a777f14610044578063853828b61461004e5780638da5cb5b14610065578063e2982c2114610090575b600080fd5b61004c6100cd565b005b34801561005a57600080fd5b50610063610113565b005b34801561007157600080fd5b5061007a6101a0565b604051610087919061021d565b60405180910390f35b34801561009c57600080fd5b506100b760048036038101906100b29190610269565b6101c4565b6040516100c491906102af565b60405180910390f35b34600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060003090508173ffffffffffffffffffffffffffffffffffffffff166108fc8273ffffffffffffffffffffffffffffffffffffffff16319081150290604051600060405180830381858888f1935050505015801561019b573d6000803e3d6000fd5b505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60016020528060005260406000206000915090505481565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610207826101dc565b9050919050565b610217816101fc565b82525050565b6000602082019050610232600083018461020e565b92915050565b600080fd5b610246816101fc565b811461025157600080fd5b50565b6000813590506102638161023d565b92915050565b60006020828403121561027f5761027e610238565b5b600061028d84828501610254565b91505092915050565b6000819050919050565b6102a981610296565b82525050565b60006020820190506102c460008301846102a0565b9291505056fea264697066735822122036ab44788ca896bbdf846d09ff54fdf77c97726273891ec7cb2894f90b44a95b64736f6c63430008110033

Deployed Bytecode

0x60806040526004361061003f5760003560e01c8063849a777f14610044578063853828b61461004e5780638da5cb5b14610065578063e2982c2114610090575b600080fd5b61004c6100cd565b005b34801561005a57600080fd5b50610063610113565b005b34801561007157600080fd5b5061007a6101a0565b604051610087919061021d565b60405180910390f35b34801561009c57600080fd5b506100b760048036038101906100b29190610269565b6101c4565b6040516100c491906102af565b60405180910390f35b34600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060003090508173ffffffffffffffffffffffffffffffffffffffff166108fc8273ffffffffffffffffffffffffffffffffffffffff16319081150290604051600060405180830381858888f1935050505015801561019b573d6000803e3d6000fd5b505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60016020528060005260406000206000915090505481565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610207826101dc565b9050919050565b610217816101fc565b82525050565b6000602082019050610232600083018461020e565b92915050565b600080fd5b610246816101fc565b811461025157600080fd5b50565b6000813590506102638161023d565b92915050565b60006020828403121561027f5761027e610238565b5b600061028d84828501610254565b91505092915050565b6000819050919050565b6102a981610296565b82525050565b60006020820190506102c460008301846102a0565b9291505056fea264697066735822122036ab44788ca896bbdf846d09ff54fdf77c97726273891ec7cb2894f90b44a95b64736f6c63430008110033

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://36ab44788ca896bbdf846d09ff54fdf77c97726273891ec7cb2894f90b44a95b

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ 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.