FTM Price: $1.39 (-2.90%)
Gas: 3 GWei
 

Overview

FTM Balance

Fantom LogoFantom LogoFantom Logo0 FTM

FTM Value

$0.00

Token Holdings

Multichain Info

Transaction Hash
Method
Block
From
To
Get Ticket819699952024-05-31 14:50:48199 days ago1717167048IN
0x6851FfaD...65fd0658B
0 FTM0.0011777225
Get Ticket814264662024-05-23 0:45:17207 days ago1716425117IN
0x6851FfaD...65fd0658B
0 FTM0.000197297.68237331
Get Ticket814264662024-05-23 0:45:17207 days ago1716425117IN
0x6851FfaD...65fd0658B
0 FTM0.000219268.53762563
Get Ticket814264662024-05-23 0:45:17207 days ago1716425117IN
0x6851FfaD...65fd0658B
0 FTM0.000219458.54518919
Get Ticket814264662024-05-23 0:45:17207 days ago1716425117IN
0x6851FfaD...65fd0658B
0 FTM0.00039928.8976863
Get Ticket812382562024-05-19 20:29:25211 days ago1716150565IN
0x6851FfaD...65fd0658B
0 FTM0.0006122321
Get Ticket812373332024-05-19 20:04:13211 days ago1716149053IN
0x6851FfaD...65fd0658B
0 FTM0.0006122321
Get Ticket812372182024-05-19 20:02:01211 days ago1716148921IN
0x6851FfaD...65fd0658B
0 FTM0.0004373115
Get Ticket812363992024-05-19 19:46:04211 days ago1716147964IN
0x6851FfaD...65fd0658B
0 FTM0.0004293115.46173406
Get Ticket812361562024-05-19 19:40:53211 days ago1716147653IN
0x6851FfaD...65fd0658B
0 FTM0.000444716.01622712
Get Ticket812335812024-05-19 18:46:19211 days ago1716144379IN
0x6851FfaD...65fd0658B
0 FTM0.0005050618.01025156
Get Ticket812331942024-05-19 18:36:42211 days ago1716143802IN
0x6851FfaD...65fd0658B
0 FTM0.0005384919.39409342
Get Ticket812315142024-05-19 18:03:51211 days ago1716141831IN
0x6851FfaD...65fd0658B
0 FTM0.0004956117
Get Ticket812290682024-05-19 17:17:49211 days ago1716139069IN
0x6851FfaD...65fd0658B
0 FTM0.0004559716.42201864
Get Ticket812262902024-05-19 16:06:23211 days ago1716134783IN
0x6851FfaD...65fd0658B
0 FTM0.0011953141
Get Ticket812258372024-05-19 15:51:29211 days ago1716133889IN
0x6851FfaD...65fd0658B
0 FTM0.0004811817.32998374
Get Ticket812253162024-05-19 15:34:12211 days ago1716132852IN
0x6851FfaD...65fd0658B
0 FTM0.0005240218.87284342
Get Ticket812250902024-05-19 15:27:31211 days ago1716132451IN
0x6851FfaD...65fd0658B
0 FTM0.0005830820
Get Ticket812249732024-05-19 15:24:37211 days ago1716132277IN
0x6851FfaD...65fd0658B
0 FTM0.0005056318.03057927
Get Ticket812245552024-05-19 15:14:43211 days ago1716131683IN
0x6851FfaD...65fd0658B
0 FTM0.0004253517.7437978
Get Ticket812245512024-05-19 15:14:40211 days ago1716131680IN
0x6851FfaD...65fd0658B
0 FTM0.0004926717.7437978
Get Ticket812225602024-05-19 14:17:13211 days ago1716128233IN
0x6851FfaD...65fd0658B
0 FTM0.0005830820
Get Ticket812221372024-05-19 14:08:41211 days ago1716127721IN
0x6851FfaD...65fd0658B
0 FTM0.0010495436
Get Ticket812220792024-05-19 14:06:35211 days ago1716127595IN
0x6851FfaD...65fd0658B
0 FTM0.0005379619.37494822
Get Ticket812219622024-05-19 14:02:07211 days ago1716127327IN
0x6851FfaD...65fd0658B
0 FTM0.0031692695.11886517
View all transactions

Latest 1 internal transaction

Parent Transaction Hash Block From To
766262862024-03-02 7:58:31289 days ago1709366311  Contract Creation0 FTM
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Ticket

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license
/**
 *Submitted for verification at ftmscan.com on 2024-03-02
*/

// SPDX-License-Identifier: GPL-3.0

pragma solidity >=0.8.2 <0.9.0;

contract Ticket {

    mapping(address=>uint256) last_claim;
    event GetTicket(address sender, uint256 day);

    function getTicket() public virtual {
        uint256 day=block.timestamp/86400;
        require(last_claim[msg.sender]<day, "Already claimed today");
        last_claim[msg.sender]=day;
        emit GetTicket(msg.sender,day);
    }
}

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"day","type":"uint256"}],"name":"GetTicket","type":"event"},{"inputs":[],"name":"getTicket","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5061014a806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c8063c002c4d614610030575b600080fd5b61003861003a565b005b600061004962015180426100f2565b3360009081526020819052604090205490915081116100a65760405162461bcd60e51b8152602060048201526015602482015274416c726561647920636c61696d656420746f64617960581b604482015260640160405180910390fd5b3360008181526020818152604091829020849055815192835282018390527fa3e4886b89c6d25cb1409eb38693c679fbc0122c8f524f71c8b7c0ea4fde21a5910160405180910390a150565b60008261010f57634e487b7160e01b600052601260045260246000fd5b50049056fea2646970667358221220a9cca32b12e6cb785dd60968039ad6395c1de609304495f87cee53d871443db164736f6c63430008110033

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061002b5760003560e01c8063c002c4d614610030575b600080fd5b61003861003a565b005b600061004962015180426100f2565b3360009081526020819052604090205490915081116100a65760405162461bcd60e51b8152602060048201526015602482015274416c726561647920636c61696d656420746f64617960581b604482015260640160405180910390fd5b3360008181526020818152604091829020849055815192835282018390527fa3e4886b89c6d25cb1409eb38693c679fbc0122c8f524f71c8b7c0ea4fde21a5910160405180910390a150565b60008261010f57634e487b7160e01b600052601260045260246000fd5b50049056fea2646970667358221220a9cca32b12e6cb785dd60968039ad6395c1de609304495f87cee53d871443db164736f6c63430008110033

Deployed Bytecode Sourcemap

74:361:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;195:237;;;:::i;:::-;;;242:11;254:21;270:5;254:15;:21;:::i;:::-;305:10;294;:22;;;;;;;;;;;242:33;;-1:-1:-1;294:26:0;-1:-1:-1;286:60:0;;;;-1:-1:-1;;;286:60:0;;438:2:1;286:60:0;;;420:21:1;477:2;457:18;;;450:30;-1:-1:-1;;;496:18:1;;;489:51;557:18;;286:60:0;;;;;;;;368:10;357;:22;;;;;;;;;;;;:26;;;399:25;;760:51:1;;;827:18;;820:34;;;399:25:0;;733:18:1;399:25:0;;;;;;;231:201;195:237::o;14:217:1:-;54:1;80;70:132;;124:10;119:3;115:20;112:1;105:31;159:4;156:1;149:15;187:4;184:1;177:15;70:132;-1:-1:-1;216:9:1;;14:217::o

Swarm Source

ipfs://a9cca32b12e6cb785dd60968039ad6395c1de609304495f87cee53d871443db1

Block Transaction Gas Used Reward
view all blocks produced

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

Validator Index Block Amount
View All Withdrawals

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