Source Code
Overview
ETH Balance
0.01 ETH
Eth Value
$20.27 (@ $2,027.34/ETH)Latest 1 from a total of 1 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Buy | 13599528 | 1578 days ago | IN | 0.01 ETH | 0.00431186 |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
Geosale
Compiler Version
v0.8.7+commit.e28d00a7
Contract Source Code (Solidity)
/**
*Submitted for verification at Etherscan.io on 2021-11-12
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
contract Geosale {
uint256 price = 10000000000000000;
address bene;
mapping(address => uint8) public starter;
constructor(){
bene = msg.sender;
}
function buy(uint8 choice) public payable{
require(msg.value == price);
starter[msg.sender] = choice;
}
function recover() public{
payable(bene).transfer(address(this).balance);
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint8","name":"choice","type":"uint8"}],"name":"buy","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"recover","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"starter","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"}]Contract Creation Code
6080604052662386f26fc1000060005534801561001b57600080fd5b50600180546001600160a01b0319163317905561019f8061003d6000396000f3fe6080604052600436106100345760003560e01c806314107f3c14610039578063ce7460241461004e578063fb931cca14610063575b600080fd5b61004c610047366004610146565b6100a9565b005b34801561005a57600080fd5b5061004c6100da565b34801561006f57600080fd5b5061009361007e366004610116565b60026020526000908152604090205460ff1681565b60405160ff909116815260200160405180910390f35b60005434146100b757600080fd5b336000908152600260205260409020805460ff191660ff92909216919091179055565b6001546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610113573d6000803e3d6000fd5b50565b60006020828403121561012857600080fd5b81356001600160a01b038116811461013f57600080fd5b9392505050565b60006020828403121561015857600080fd5b813560ff8116811461013f57600080fdfea2646970667358221220626db956cee0b05e7d15495f8f5af7e1d5e38cb8bd2d26af9854a64d3b8489c664736f6c63430008070033
Deployed Bytecode
0x6080604052600436106100345760003560e01c806314107f3c14610039578063ce7460241461004e578063fb931cca14610063575b600080fd5b61004c610047366004610146565b6100a9565b005b34801561005a57600080fd5b5061004c6100da565b34801561006f57600080fd5b5061009361007e366004610116565b60026020526000908152604090205460ff1681565b60405160ff909116815260200160405180910390f35b60005434146100b757600080fd5b336000908152600260205260409020805460ff191660ff92909216919091179055565b6001546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610113573d6000803e3d6000fd5b50565b60006020828403121561012857600080fd5b81356001600160a01b038116811461013f57600080fd5b9392505050565b60006020828403121561015857600080fd5b813560ff8116811461013f57600080fdfea2646970667358221220626db956cee0b05e7d15495f8f5af7e1d5e38cb8bd2d26af9854a64d3b8489c664736f6c63430008070033
Deployed Bytecode Sourcemap
62:419:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;255:126;;;;;;:::i;:::-;;:::i;:::-;;389:89;;;;;;;;;;;;;:::i;145:40::-;;;;;;;;;;-1:-1:-1;145:40:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;751:4:1;739:17;;;721:36;;709:2;694:18;145:40:0;;;;;;;255:126;328:5;;315:9;:18;307:27;;;;;;353:10;345:19;;;;:7;:19;;;;;:28;;-1:-1:-1;;345:28:0;;;;;;;;;;;;255:126::o;389:89::-;433:4;;425:45;;-1:-1:-1;;;;;433:4:0;;;;448:21;425:45;;;;;433:4;425:45;433:4;425:45;448:21;433:4;425:45;;;;;;;;;;;;;;;;;;;;;389:89::o;14:286:1:-;73:6;126:2;114:9;105:7;101:23;97:32;94:52;;;142:1;139;132:12;94:52;168:23;;-1:-1:-1;;;;;220:31:1;;210:42;;200:70;;266:1;263;256:12;200:70;289:5;14:286;-1:-1:-1;;;14:286:1:o;305:269::-;362:6;415:2;403:9;394:7;390:23;386:32;383:52;;;431:1;428;421:12;383:52;470:9;457:23;520:4;513:5;509:16;502:5;499:27;489:55;;540:1;537;530:12
Swarm Source
ipfs://626db956cee0b05e7d15495f8f5af7e1d5e38cb8bd2d26af9854a64d3b8489c6
Loading...
Loading
Loading...
Loading
Net Worth in USD
$20.27
Net Worth in ETH
0.01
Token Allocations
ETH
100.00%
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| ETH | 100.00% | $2,027.34 | 0.01 | $20.27 |
Loading...
Loading
Loading...
Loading
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.