Overview
ETH Balance
ETH Value
$0.05 (@ $2,712.17/ETH)More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 6,404,681 transactions (+12 Pending)
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x5d3489ed7473ecebc7951ee16cec36d939b6703333ab8ecbeb5ccc51c3d26eac | - | (pending) | 7 secs ago | IN | 0.000004 ETH | (Pending) | |||
0x8484234497e8cf52651b5755525230e86f324f248bb42343087acc0ca6cc8ca9 | - | (pending) | 7 secs ago | IN | 0.000004 ETH | (Pending) | |||
0x84a5132fe1f40ffd44527e6f9d19137e72ac0998da746e3f3c454b62f1b8367c | - | (pending) | 7 secs ago | IN | 0.000004 ETH | (Pending) | |||
0x62d169cda7c45485fa83cc93b6a91aa2adeae6872b55985bcd43cdfeb1a742db | - | (pending) | 8 secs ago | IN | 0.000004 ETH | (Pending) | |||
0xddcf3690430798136739527f729cd22aa29b6768ba031eee195e3b0e06a46ce6 | - | (pending) | 8 secs ago | IN | 0.000004 ETH | (Pending) | |||
0x9ef68559190e5e2347ed7908105ca3e9667a63c21531c42819bdbce62f4b2a35 | - | (pending) | 8 secs ago | IN | 0.000004 ETH | (Pending) | |||
0xf36f77ae4f90cfaa621015daaf8509b64ad13af67480fb40bb708c0ca29081bc | - | (pending) | 20 secs ago | IN | 0.000004 ETH | (Pending) | |||
0xd6dc4e90b46e8828185ed475218649c87a2ff9cddb7e1bad1575c9e4e6706249 | - | (pending) | 20 secs ago | IN | 0.000004 ETH | (Pending) | |||
0x2812e6f80b8a6a3f02912ae9bcba3a4ba7012b2cc5818d3592af24237b8f287d | - | (pending) | 20 secs ago | IN | 0.000004 ETH | (Pending) | |||
0xbae5ad1844c824d7da18ff2f28245dcc8709b8f3a098ab9a090c45a2f9db7f76 | - | (pending) | 21 secs ago | IN | 0.000004 ETH | (Pending) | |||
0x1b6403d458e24315da671ea059fd63381ed5ff6d460c2dc225c70088a2c160bd | - | (pending) | 21 secs ago | IN | 0.000004 ETH | (Pending) | |||
0xe140f0f2b81b338858fc5e8c03d08ae1287322fcab4549150a972d7512189d6d | - | (pending) | 21 secs ago | IN | 0.000004 ETH | (Pending) | |||
Get Ticket | 864665 | 37 secs ago | IN | 0.000004 ETH | 0.00000362 | ||||
Get Ticket | 864665 | 37 secs ago | IN | 0.000004 ETH | 0.00000362 | ||||
Get Ticket | 864665 | 37 secs ago | IN | 0.000004 ETH | 0.00000362 | ||||
Get Ticket | 864665 | 37 secs ago | IN | 0.000004 ETH | 0.00000362 | ||||
Get Ticket | 864665 | 37 secs ago | IN | 0.000004 ETH | 0.00000394 | ||||
Get Ticket | 864664 | 49 secs ago | IN | 0.000004 ETH | 0.00000362 | ||||
Get Ticket | 864663 | 1 min ago | IN | 0.000004 ETH | 0.00000362 | ||||
Get Ticket | 864663 | 1 min ago | IN | 0.000004 ETH | 0.00000362 | ||||
Get Ticket | 864663 | 1 min ago | IN | 0.000004 ETH | 0.00000362 | ||||
Get Ticket | 864661 | 1 min ago | IN | 0.000004 ETH | 0.00000362 | ||||
Get Ticket | 864661 | 1 min ago | IN | 0.000004 ETH | 0.00000362 | ||||
Get Ticket | 864660 | 1 min ago | IN | 0.000004 ETH | 0.00000119 | ||||
Get Ticket | 864660 | 1 min ago | IN | 0.000004 ETH | 0.00000362 |
Latest 25 internal transactions (View All)
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
864665 | 37 secs ago | 0.000004 ETH | ||||
864665 | 37 secs ago | 0.000004 ETH | ||||
864665 | 37 secs ago | 0.000004 ETH | ||||
864665 | 37 secs ago | 0.000004 ETH | ||||
864665 | 37 secs ago | 0.000004 ETH | ||||
864664 | 49 secs ago | 0.000004 ETH | ||||
864663 | 1 min ago | 0.000004 ETH | ||||
864663 | 1 min ago | 0.000004 ETH | ||||
864663 | 1 min ago | 0.000004 ETH | ||||
864661 | 1 min ago | 0.000004 ETH | ||||
864661 | 1 min ago | 0.000004 ETH | ||||
864660 | 1 min ago | 0.000004 ETH | ||||
864660 | 1 min ago | 0.000004 ETH | ||||
864660 | 1 min ago | 0.000004 ETH | ||||
864660 | 1 min ago | 0.000004 ETH | ||||
864660 | 1 min ago | 0.000004 ETH | ||||
864660 | 1 min ago | 0.000004 ETH | ||||
864660 | 1 min ago | 0.000004 ETH | ||||
864659 | 2 mins ago | 0.000004 ETH | ||||
864659 | 2 mins ago | 0.000004 ETH | ||||
864657 | 2 mins ago | 0.000004 ETH | ||||
864657 | 2 mins ago | 0.000004 ETH | ||||
864657 | 2 mins ago | 0.000004 ETH | ||||
864657 | 2 mins ago | 0.000004 ETH | ||||
864656 | 3 mins ago | 0.000004 ETH |
Loading...
Loading
Contract Name:
Ticket
Compiler Version
v0.8.17+commit.8df45f5f
Contract Source Code (Solidity)
/** *Submitted for verification at taikoscan.io on 2024-06-23 */ // File: @openzeppelin/[email protected]/utils/Context.sol // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File: @openzeppelin/[email protected]/access/Ownable.sol // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File: contracts/tiket.sol pragma solidity >=0.8.2 <0.9.0; contract Ticket is Ownable { event GetTicket(address sender, uint256 day); uint256 public fee = 2e13; constructor(){ } function SetFee(uint256 _fee) public virtual onlyOwner{ fee = _fee; } function getTicket() public virtual payable { uint256 day=block.timestamp/86400; require(msg.value==fee, "Ticket: Value is not equal fee"); payable(owner()).transfer(msg.value); emit GetTicket(msg.sender,day); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"day","type":"uint256"}],"name":"GetTicket","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"SetFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"fee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTicket","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526512309ce5400060015534801561001a57600080fd5b5061002433610029565b610079565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6103cc806100886000396000f3fe6080604052600436106100545760003560e01c8062172ddf14610059578063715018a61461007b5780638da5cb5b14610090578063c002c4d6146100bd578063ddca3f43146100c5578063f2fde38b146100e9575b600080fd5b34801561006557600080fd5b5061007961007436600461032b565b610109565b005b34801561008757600080fd5b50610079610116565b34801561009c57600080fd5b506000546040516001600160a01b0390911681526020015b60405180910390f35b61007961012a565b3480156100d157600080fd5b506100db60015481565b6040519081526020016100b4565b3480156100f557600080fd5b50610079610104366004610344565b610208565b610111610281565b600155565b61011e610281565b61012860006102db565b565b60006101396201518042610374565b905060015434146101915760405162461bcd60e51b815260206004820152601e60248201527f5469636b65743a2056616c7565206973206e6f7420657175616c20666565000060448201526064015b60405180910390fd5b600080546040516001600160a01b03909116913480156108fc02929091818181858888f193505050501580156101cb573d6000803e3d6000fd5b5060408051338152602081018390527fa3e4886b89c6d25cb1409eb38693c679fbc0122c8f524f71c8b7c0ea4fde21a5910160405180910390a150565b610210610281565b6001600160a01b0381166102755760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610188565b61027e816102db565b50565b6000546001600160a01b031633146101285760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610188565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561033d57600080fd5b5035919050565b60006020828403121561035657600080fd5b81356001600160a01b038116811461036d57600080fd5b9392505050565b60008261039157634e487b7160e01b600052601260045260246000fd5b50049056fea2646970667358221220089dc321220d52e0d08132addeabebffeaabef5c29055223382e362b9003dfa764736f6c63430008110033
Deployed Bytecode
0x6080604052600436106100545760003560e01c8062172ddf14610059578063715018a61461007b5780638da5cb5b14610090578063c002c4d6146100bd578063ddca3f43146100c5578063f2fde38b146100e9575b600080fd5b34801561006557600080fd5b5061007961007436600461032b565b610109565b005b34801561008757600080fd5b50610079610116565b34801561009c57600080fd5b506000546040516001600160a01b0390911681526020015b60405180910390f35b61007961012a565b3480156100d157600080fd5b506100db60015481565b6040519081526020016100b4565b3480156100f557600080fd5b50610079610104366004610344565b610208565b610111610281565b600155565b61011e610281565b61012860006102db565b565b60006101396201518042610374565b905060015434146101915760405162461bcd60e51b815260206004820152601e60248201527f5469636b65743a2056616c7565206973206e6f7420657175616c20666565000060448201526064015b60405180910390fd5b600080546040516001600160a01b03909116913480156108fc02929091818181858888f193505050501580156101cb573d6000803e3d6000fd5b5060408051338152602081018390527fa3e4886b89c6d25cb1409eb38693c679fbc0122c8f524f71c8b7c0ea4fde21a5910160405180910390a150565b610210610281565b6001600160a01b0381166102755760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610188565b61027e816102db565b50565b6000546001600160a01b031633146101285760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610188565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561033d57600080fd5b5035919050565b60006020828403121561035657600080fd5b81356001600160a01b038116811461036d57600080fd5b9392505050565b60008261039157634e487b7160e01b600052601260045260246000fd5b50049056fea2646970667358221220089dc321220d52e0d08132addeabebffeaabef5c29055223382e362b9003dfa764736f6c63430008110033
Deployed Bytecode Sourcemap
3669:497:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3819:83;;;;;;;;;;-1:-1:-1;3819:83:0;;;;;:::i;:::-;;:::i;:::-;;2781:103;;;;;;;;;;;;;:::i;2140:87::-;;;;;;;;;;-1:-1:-1;2186:7:0;2213:6;2140:87;;-1:-1:-1;;;;;2213:6:0;;;345:51:1;;333:2;318:18;2140:87:0;;;;;;;;3910:253;;;:::i;3756:25::-;;;;;;;;;;;;;;;;;;;553::1;;;541:2;526:18;3756:25:0;407:177:1;3039:201:0;;;;;;;;;;-1:-1:-1;3039:201:0;;;;;:::i;:::-;;:::i;3819:83::-;2026:13;:11;:13::i;:::-;3884:3:::1;:10:::0;3819:83::o;2781:103::-;2026:13;:11;:13::i;:::-;2846:30:::1;2873:1;2846:18;:30::i;:::-;2781:103::o:0;3910:253::-;3966:11;3978:21;3994:5;3978:15;:21;:::i;:::-;3966:33;;4029:3;;4018:9;:14;4010:57;;;;-1:-1:-1;;;4010:57:0;;1304:2:1;4010:57:0;;;1286:21:1;1343:2;1323:18;;;1316:30;1382:32;1362:18;;;1355:60;1432:18;;4010:57:0;;;;;;;;;2186:7;2213:6;;4078:36;;-1:-1:-1;;;;;2213:6:0;;;;4104:9;4078:36;;;;;4104:9;;4078:36;2186:7;4078:36;4104:9;2213:6;4078:36;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4130:25:0;;;4140:10;1635:51:1;;1717:2;1702:18;;1695:34;;;4130:25:0;;1608:18:1;4130:25:0;;;;;;;3955:208;3910:253::o;3039:201::-;2026:13;:11;:13::i;:::-;-1:-1:-1;;;;;3128:22:0;::::1;3120:73;;;::::0;-1:-1:-1;;;3120:73:0;;1942:2:1;3120:73:0::1;::::0;::::1;1924:21:1::0;1981:2;1961:18;;;1954:30;2020:34;2000:18;;;1993:62;-1:-1:-1;;;2071:18:1;;;2064:36;2117:19;;3120:73:0::1;1740:402:1::0;3120:73:0::1;3204:28;3223:8;3204:18;:28::i;:::-;3039:201:::0;:::o;2305:132::-;2186:7;2213:6;-1:-1:-1;;;;;2213:6:0;765:10;2369:23;2361:68;;;;-1:-1:-1;;;2361:68:0;;2349:2:1;2361:68:0;;;2331:21:1;;;2368:18;;;2361:30;2427:34;2407:18;;;2400:62;2479:18;;2361:68:0;2147:356:1;3400:191:0;3474:16;3493:6;;-1:-1:-1;;;;;3510:17:0;;;-1:-1:-1;;;;;;3510:17:0;;;;;;3543:40;;3493:6;;;;;;;3543:40;;3474:16;3543:40;3463:128;3400:191;:::o;14:180:1:-;73:6;126:2;114:9;105:7;101:23;97:32;94:52;;;142:1;139;132:12;94:52;-1:-1:-1;165:23:1;;14:180;-1:-1:-1;14:180:1:o;589:286::-;648:6;701:2;689:9;680:7;676:23;672:32;669:52;;;717:1;714;707:12;669:52;743:23;;-1:-1:-1;;;;;795:31:1;;785:42;;775:70;;841:1;838;831:12;775:70;864:5;589:286;-1:-1:-1;;;589:286:1:o;880:217::-;920:1;946;936:132;;990:10;985:3;981:20;978:1;971:31;1025:4;1022:1;1015:15;1053:4;1050:1;1043:15;936:132;-1:-1:-1;1082:9:1;;880:217::o
Swarm Source
ipfs://089dc321220d52e0d08132addeabebffeaabef5c29055223382e362b9003dfa7
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
[ 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.