ETH Price: $3,577.48 (-2.91%)

Contract

0x39a6D13bf33AAcF565d39FF11Faa36b8177382C7
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Register147065432022-05-03 19:32:06943 days ago1651606326IN
0x39a6D13b...8177382C7
0 ETH0.0009503940.53354697
Register147065202022-05-03 19:27:50943 days ago1651606070IN
0x39a6D13b...8177382C7
0 ETH0.0014177660.46672405
Register147065052022-05-03 19:24:12943 days ago1651605852IN
0x39a6D13b...8177382C7
0 ETH0.0011370348.49375525
Register147065022022-05-03 19:23:38943 days ago1651605818IN
0x39a6D13b...8177382C7
0 ETH0.0010328744.05126692
Register147064752022-05-03 19:17:15943 days ago1651605435IN
0x39a6D13b...8177382C7
0 ETH0.0013356256.96354473
Set Paused147064742022-05-03 19:17:12943 days ago1651605432IN
0x39a6D13b...8177382C7
0 ETH0.0025048354.79126155
Register147064722022-05-03 19:16:39943 days ago1651605399IN
0x39a6D13b...8177382C7
0 ETH0.0044388956.88994503
Register147064712022-05-03 19:16:18943 days ago1651605378IN
0x39a6D13b...8177382C7
0 ETH0.0044502957.03607353
Register147064702022-05-03 19:16:10943 days ago1651605370IN
0x39a6D13b...8177382C7
0 ETH0.0042716254.74623345
Register147064682022-05-03 19:15:40943 days ago1651605340IN
0x39a6D13b...8177382C7
0 ETH0.0036682847.01367841
Register147064622022-05-03 19:14:42943 days ago1651605282IN
0x39a6D13b...8177382C7
0 ETH0.004786261.34109603
Register147064612022-05-03 19:14:26943 days ago1651605266IN
0x39a6D13b...8177382C7
0 ETH0.0044643357.21604131
Register147064562022-05-03 19:13:33943 days ago1651605213IN
0x39a6D13b...8177382C7
0 ETH0.0040076751.36328239
Register147064532022-05-03 19:13:13943 days ago1651605193IN
0x39a6D13b...8177382C7
0 ETH0.0042500654.46987087
Register147064492022-05-03 19:12:21943 days ago1651605141IN
0x39a6D13b...8177382C7
0 ETH0.0049106862.93652756
Register147064482022-05-03 19:12:14943 days ago1651605134IN
0x39a6D13b...8177382C7
0 ETH0.0049654363.63822266
Register147064472022-05-03 19:11:36943 days ago1651605096IN
0x39a6D13b...8177382C7
0 ETH0.004435956.85167181
Register147064472022-05-03 19:11:36943 days ago1651605096IN
0x39a6D13b...8177382C7
0 ETH0.004435956.85167181
Register147064472022-05-03 19:11:36943 days ago1651605096IN
0x39a6D13b...8177382C7
0 ETH0.004435956.85167181
Register147064402022-05-03 19:10:26943 days ago1651605026IN
0x39a6D13b...8177382C7
0 ETH0.0048515362.17839619
Register147064402022-05-03 19:10:26943 days ago1651605026IN
0x39a6D13b...8177382C7
0 ETH0.0048515362.17839619
Register147064392022-05-03 19:10:01943 days ago1651605001IN
0x39a6D13b...8177382C7
0 ETH0.004452857.06823355
Register147064392022-05-03 19:10:01943 days ago1651605001IN
0x39a6D13b...8177382C7
0 ETH0.004452857.06823355
Register147064372022-05-03 19:09:34943 days ago1651604974IN
0x39a6D13b...8177382C7
0 ETH0.0014074254.81898444
Register147064362022-05-03 19:08:14943 days ago1651604894IN
0x39a6D13b...8177382C7
0 ETH0.0038238349.00724488
View all transactions

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

Contract Source Code Verified (Exact Match)

Contract Name:
Raffle

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

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

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

contract Raffle {

    uint256   public totalWallets;
    address   public owner;
    address[] public wallets;

    bool paused = true;

    mapping(address => bool) addressToRegistered;

    constructor() {
        owner = msg.sender;
    }

    function register() public {
        require(!paused, "Contract is paused");
        require(msg.sender == tx.origin, "Only EOA");
        require(addressToRegistered[msg.sender] != true, "Already registered");
        addressToRegistered[msg.sender] = true;
        wallets.push(msg.sender);
        totalWallets += 1;
    }

    function setPaused(bool _state) public {
        require(msg.sender == owner, "Only owner");
        paused = _state;
    }

    function getWallets() public view returns(address[] memory) {
        return wallets;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"getWallets","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"register","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalWallets","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"wallets","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60806040526003805460ff1916600117905534801561001d57600080fd5b50600180546001600160a01b031916331790556104188061003f6000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c806316c38b3c146100675780631aa3a0081461007c5780637ad71f72146100845780638da5cb5b146100b4578063977d2c45146100c7578063db7a4605146100de575b600080fd5b61007a61007536600461032d565b6100f3565b005b61007a610152565b610097610092366004610356565b6102a1565b6040516001600160a01b0390911681526020015b60405180910390f35b600154610097906001600160a01b031681565b6100d060005481565b6040519081526020016100ab565b6100e66102cb565b6040516100ab919061036f565b6001546001600160a01b0316331461013f5760405162461bcd60e51b815260206004820152600a60248201526927b7363c9037bbb732b960b11b60448201526064015b60405180910390fd5b6003805460ff1916911515919091179055565b60035460ff161561019a5760405162461bcd60e51b815260206004820152601260248201527110dbdb9d1c9858dd081a5cc81c185d5cd95960721b6044820152606401610136565b3332146101d45760405162461bcd60e51b81526020600482015260086024820152674f6e6c7920454f4160c01b6044820152606401610136565b3360009081526004602052604090205460ff1615156001141561022e5760405162461bcd60e51b8152602060048201526012602482015271105b1c9958591e481c9959da5cdd195c995960721b6044820152606401610136565b336000818152600460205260408120805460ff191660019081179091556002805480830182559083527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319169093179092558054819061029a9084906103bc565b9091555050565b600281815481106102b157600080fd5b6000918252602090912001546001600160a01b0316905081565b6060600280548060200260200160405190810160405280929190818152602001828054801561032357602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610305575b5050505050905090565b60006020828403121561033f57600080fd5b8135801515811461034f57600080fd5b9392505050565b60006020828403121561036857600080fd5b5035919050565b6020808252825182820181905260009190848201906040850190845b818110156103b05783516001600160a01b03168352928401929184019160010161038b565b50909695505050505050565b600082198211156103dd57634e487b7160e01b600052601160045260246000fd5b50019056fea2646970667358221220589b2b2deaf961583b8e3363b2989013824d9ffd08ba98042ffa8ba474d238c564736f6c63430008070033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100625760003560e01c806316c38b3c146100675780631aa3a0081461007c5780637ad71f72146100845780638da5cb5b146100b4578063977d2c45146100c7578063db7a4605146100de575b600080fd5b61007a61007536600461032d565b6100f3565b005b61007a610152565b610097610092366004610356565b6102a1565b6040516001600160a01b0390911681526020015b60405180910390f35b600154610097906001600160a01b031681565b6100d060005481565b6040519081526020016100ab565b6100e66102cb565b6040516100ab919061036f565b6001546001600160a01b0316331461013f5760405162461bcd60e51b815260206004820152600a60248201526927b7363c9037bbb732b960b11b60448201526064015b60405180910390fd5b6003805460ff1916911515919091179055565b60035460ff161561019a5760405162461bcd60e51b815260206004820152601260248201527110dbdb9d1c9858dd081a5cc81c185d5cd95960721b6044820152606401610136565b3332146101d45760405162461bcd60e51b81526020600482015260086024820152674f6e6c7920454f4160c01b6044820152606401610136565b3360009081526004602052604090205460ff1615156001141561022e5760405162461bcd60e51b8152602060048201526012602482015271105b1c9958591e481c9959da5cdd195c995960721b6044820152606401610136565b336000818152600460205260408120805460ff191660019081179091556002805480830182559083527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319169093179092558054819061029a9084906103bc565b9091555050565b600281815481106102b157600080fd5b6000918252602090912001546001600160a01b0316905081565b6060600280548060200260200160405190810160405280929190818152602001828054801561032357602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610305575b5050505050905090565b60006020828403121561033f57600080fd5b8135801515811461034f57600080fd5b9392505050565b60006020828403121561036857600080fd5b5035919050565b6020808252825182820181905260009190848201906040850190845b818110156103b05783516001600160a01b03168352928401929184019160010161038b565b50909695505050505050565b600082198211156103dd57634e487b7160e01b600052601160045260246000fd5b50019056fea2646970667358221220589b2b2deaf961583b8e3363b2989013824d9ffd08ba98042ffa8ba474d238c564736f6c63430008070033

Deployed Bytecode Sourcemap

60:832:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;662:126;;;;;;:::i;:::-;;:::i;:::-;;322:332;;;:::i;150:24::-;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;641:32:1;;;623:51;;611:2;596:18;150:24:0;;;;;;;;121:22;;;;;-1:-1:-1;;;;;121:22:0;;;85:29;;;;;;;;;2863:25:1;;;2851:2;2836:18;85:29:0;2717:177:1;796:93:0;;;:::i;:::-;;;;;;;:::i;662:126::-;734:5;;-1:-1:-1;;;;;734:5:0;720:10;:19;712:42;;;;-1:-1:-1;;;712:42:0;;1550:2:1;712:42:0;;;1532:21:1;1589:2;1569:18;;;1562:30;-1:-1:-1;;;1608:18:1;;;1601:40;1658:18;;712:42:0;;;;;;;;;765:6;:15;;-1:-1:-1;;765:15:0;;;;;;;;;;662:126::o;322:332::-;369:6;;;;368:7;360:38;;;;-1:-1:-1;;;360:38:0;;2572:2:1;360:38:0;;;2554:21:1;2611:2;2591:18;;;2584:30;-1:-1:-1;;;2630:18:1;;;2623:48;2688:18;;360:38:0;2370:342:1;360:38:0;417:10;431:9;417:23;409:44;;;;-1:-1:-1;;;409:44:0;;1889:2:1;409:44:0;;;1871:21:1;1928:1;1908:18;;;1901:29;-1:-1:-1;;;1946:18:1;;;1939:38;1994:18;;409:44:0;1687:331:1;409:44:0;492:10;472:31;;;;:19;:31;;;;;;;;:39;;:31;:39;;464:70;;;;-1:-1:-1;;;464:70:0;;2225:2:1;464:70:0;;;2207:21:1;2264:2;2244:18;;;2237:30;-1:-1:-1;;;2283:18:1;;;2276:48;2341:18;;464:70:0;2023:342:1;464:70:0;565:10;545:31;;;;:19;:31;;;;;:38;;-1:-1:-1;;545:38:0;579:4;545:38;;;;;;594:7;:24;;;;;;;;;;;;;;-1:-1:-1;;;;;;594:24:0;;;;;;;629:17;;545:31;;629:17;;579:4;;629:17;:::i;:::-;;;;-1:-1:-1;;322:332:0:o;150:24::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;150:24:0;;-1:-1:-1;150:24:0;:::o;796:93::-;838:16;874:7;867:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;867:14:0;;;;;;;;;;;;;;;;;;;;;;;796:93;:::o;14:273:1:-;70:6;123:2;111:9;102:7;98:23;94:32;91:52;;;139:1;136;129:12;91:52;178:9;165:23;231:5;224:13;217:21;210:5;207:32;197:60;;253:1;250;243:12;197:60;276:5;14:273;-1:-1:-1;;;14:273:1:o;292:180::-;351:6;404:2;392:9;383:7;379:23;375:32;372:52;;;420:1;417;410:12;372:52;-1:-1:-1;443:23:1;;292:180;-1:-1:-1;292:180:1:o;685:658::-;856:2;908:21;;;978:13;;881:18;;;1000:22;;;827:4;;856:2;1079:15;;;;1053:2;1038:18;;;827:4;1122:195;1136:6;1133:1;1130:13;1122:195;;;1201:13;;-1:-1:-1;;;;;1197:39:1;1185:52;;1292:15;;;;1257:12;;;;1233:1;1151:9;1122:195;;;-1:-1:-1;1334:3:1;;685:658;-1:-1:-1;;;;;;685:658:1:o;2899:225::-;2939:3;2970:1;2966:6;2963:1;2960:13;2957:136;;;3015:10;3010:3;3006:20;3003:1;2996:31;3050:4;3047:1;3040:15;3078:4;3075:1;3068:15;2957:136;-1:-1:-1;3109:9:1;;2899:225::o

Swarm Source

ipfs://589b2b2deaf961583b8e3363b2989013824d9ffd08ba98042ffa8ba474d238c5

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.