Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 228 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
Buy Advert With ... | 19827098 | 61 days ago | IN | 0.01 ETH | 0.00052839 | ||||
Buy Advert With ... | 19818748 | 62 days ago | IN | 0.0075 ETH | 0.00021918 | ||||
Buy Advert With ... | 19818729 | 62 days ago | IN | 0.0075 ETH | 0.0002389 | ||||
Buy Advert With ... | 19812815 | 63 days ago | IN | 0.0075 ETH | 0.00014338 | ||||
Buy Advert With ... | 19806734 | 64 days ago | IN | 0.066 ETH | 0.00051735 | ||||
Buy Advert With ... | 19806732 | 64 days ago | IN | 0.066 ETH | 0.00052523 | ||||
Buy Advert With ... | 19802193 | 64 days ago | IN | 0.0075 ETH | 0.00014697 | ||||
Buy Advert With ... | 19775868 | 68 days ago | IN | 0.0075 ETH | 0.0002501 | ||||
Buy Advert With ... | 19774819 | 68 days ago | IN | 0.0075 ETH | 0.00019187 | ||||
Buy Advert With ... | 19774800 | 68 days ago | IN | 0.0075 ETH | 0.00023255 | ||||
Buy Advert With ... | 19774779 | 68 days ago | IN | 0.0075 ETH | 0.00019342 | ||||
Buy Advert With ... | 19767048 | 69 days ago | IN | 0.038 ETH | 0.00164331 | ||||
Buy Advert With ... | 19766943 | 69 days ago | IN | 0.018 ETH | 0.0008367 | ||||
Buy Advert With ... | 19766923 | 69 days ago | IN | 0.0075 ETH | 0.00018526 | ||||
Buy Advert With ... | 19766896 | 69 days ago | IN | 0.0075 ETH | 0.00017391 | ||||
Buy Advert With ... | 19766889 | 69 days ago | IN | 0.0075 ETH | 0.00016257 | ||||
Buy Advert With ... | 19766884 | 69 days ago | IN | 0.0075 ETH | 0.00017609 | ||||
Buy Advert With ... | 19752283 | 71 days ago | IN | 0.0075 ETH | 0.00010797 | ||||
Buy Advert With ... | 19752276 | 71 days ago | IN | 0.0075 ETH | 0.00011255 | ||||
Buy Advert With ... | 19752270 | 71 days ago | IN | 0.0075 ETH | 0.00011249 | ||||
Buy Advert With ... | 19752243 | 71 days ago | IN | 0.0075 ETH | 0.00010449 | ||||
Buy Advert With ... | 19740207 | 73 days ago | IN | 0.0075 ETH | 0.00027389 | ||||
Buy Advert With ... | 19740200 | 73 days ago | IN | 0.0075 ETH | 0.0002986 | ||||
Buy Advert With ... | 19735736 | 73 days ago | IN | 0.038 ETH | 0.00057305 | ||||
Buy Advert With ... | 19733492 | 74 days ago | IN | 0.0075 ETH | 0.00051793 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | Value | ||
---|---|---|---|---|---|---|
19827098 | 61 days ago | 0.01 ETH | ||||
19806734 | 64 days ago | 0.066 ETH | ||||
19806732 | 64 days ago | 0.066 ETH | ||||
19767048 | 69 days ago | 0.038 ETH | ||||
19766943 | 69 days ago | 0.018 ETH | ||||
19735736 | 73 days ago | 0.038 ETH | ||||
19723833 | 75 days ago | 0.018 ETH | ||||
19669766 | 83 days ago | 0.017 ETH | ||||
19655039 | 85 days ago | 0.018 ETH | ||||
19654471 | 85 days ago | 0.018 ETH | ||||
19640128 | 87 days ago | 0.061 ETH | ||||
19638128 | 87 days ago | 0.017 ETH | ||||
19616498 | 90 days ago | 0.015 ETH | ||||
19573417 | 96 days ago | 0.059 ETH | ||||
19571818 | 96 days ago | 0.058 ETH | ||||
19571657 | 96 days ago | 0.058 ETH | ||||
19524650 | 103 days ago | 0.016 ETH | ||||
19498315 | 107 days ago | 0.025 ETH | ||||
19484985 | 109 days ago | 0.025 ETH | ||||
19484050 | 109 days ago | 0.025 ETH | ||||
19472260 | 110 days ago | 0.056 ETH | ||||
19466439 | 111 days ago | 0.054 ETH | ||||
19466409 | 111 days ago | 0.054 ETH | ||||
19454590 | 113 days ago | 0.055 ETH | ||||
19447320 | 114 days ago | 0.057 ETH |
Loading...
Loading
Contract Name:
CoinToken
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-01-30 */ pragma solidity ^0.6.12; // SPDX-License-Identifier: Unlicensed abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } /** * @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. */ contract Ownable is Context { address payable private _owner; address private _previousOwner; uint256 private _lockTime; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { _owner = msg.sender; emit OwnershipTransferred(address(0), _owner); } /** * @dev Returns the address of the current owner. */ function owner() public view returns (address payable) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(_owner == _msgSender(), "Ownable: caller is not the owner"); _; } } contract CoinToken is Context, Ownable { //history struct BuyData { uint256 advertId; uint256 promoType; uint256 amount; } uint256 private currentBuyIndex; mapping (uint256 => BuyData) private buyHistory; constructor () public { currentBuyIndex = 1; } // toplist support function getBuyCount() public view returns (uint256) { return currentBuyIndex; } function getBuyHistory(uint256 idx) public view returns (uint256, uint256, uint256) { require(idx <= currentBuyIndex, "Index out of bounds"); return (buyHistory[idx].advertId, buyHistory[idx].promoType, buyHistory[idx].amount); } function buyAdvertWithBNB(uint256 advertId, uint256 promoType) external payable { require(advertId > 0, "Invalid advert ID"); require(msg.value >= 0.01 ether); bool success = owner().send(msg.value); require(success, "Money transfer failed"); buyHistory[currentBuyIndex] = BuyData(advertId, promoType, msg.value); ++currentBuyIndex; } //to recieve ETH from uniswapV2Router when swaping receive() external payable { bool success = owner().send(msg.value); require(success, "Money transfer failed"); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"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":"advertId","type":"uint256"},{"internalType":"uint256","name":"promoType","type":"uint256"}],"name":"buyAdvertWithBNB","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"getBuyCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"idx","type":"uint256"}],"name":"getBuyHistory","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608060405234801561001057600080fd5b50600080546001600160a01b03191633178082556040516001600160a01b039190911691907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3600160035561037b8061006e6000396000f3fe6080604052600436106100435760003560e01c806334ee4448146100cd57806358a64693146100f25780638da5cb5b1461013a5780638f10fd451461016b576100c8565b366100c8576000610052610192565b6001600160a01b03166108fc349081150290604051600060405180830381858888f193505050509050806100c5576040805162461bcd60e51b8152602060048201526015602482015274135bdb995e481d1c985b9cd9995c8819985a5b1959605a1b604482015290519081900360640190fd5b50005b600080fd5b6100f0600480360360408110156100e357600080fd5b50803590602001356101a1565b005b3480156100fe57600080fd5b5061011c6004803603602081101561011557600080fd5b50356102cb565b60408051938452602084019290925282820152519081900360600190f35b34801561014657600080fd5b5061014f610192565b604080516001600160a01b039092168252519081900360200190f35b34801561017757600080fd5b5061018061033f565b60408051918252519081900360200190f35b6000546001600160a01b031690565b600082116101ea576040805162461bcd60e51b8152602060048201526011602482015270125b9d985b1a590818591d995c9d081251607a1b604482015290519081900360640190fd5b662386f26fc100003410156101fe57600080fd5b6000610208610192565b6001600160a01b03166108fc349081150290604051600060405180830381858888f1935050505090508061027b576040805162461bcd60e51b8152602060048201526015602482015274135bdb995e481d1c985b9cd9995c8819985a5b1959605a1b604482015290519081900360640190fd5b506040805160608101825292835260208084019283523484830190815260038054600090815260049093529290912093518455915160018085019190915591516002909301929092558154019055565b600080600060035484111561031d576040805162461bcd60e51b8152602060048201526013602482015272496e646578206f7574206f6620626f756e647360681b604482015290519081900360640190fd5b5050506000908152600460205260409020805460018201546002909201549092565b6003549056fea264697066735822122073899577ef77a840241927d819d234285758e91c3e007d1dd8d5147da6f27aa464736f6c634300060c0033
Deployed Bytecode
0x6080604052600436106100435760003560e01c806334ee4448146100cd57806358a64693146100f25780638da5cb5b1461013a5780638f10fd451461016b576100c8565b366100c8576000610052610192565b6001600160a01b03166108fc349081150290604051600060405180830381858888f193505050509050806100c5576040805162461bcd60e51b8152602060048201526015602482015274135bdb995e481d1c985b9cd9995c8819985a5b1959605a1b604482015290519081900360640190fd5b50005b600080fd5b6100f0600480360360408110156100e357600080fd5b50803590602001356101a1565b005b3480156100fe57600080fd5b5061011c6004803603602081101561011557600080fd5b50356102cb565b60408051938452602084019290925282820152519081900360600190f35b34801561014657600080fd5b5061014f610192565b604080516001600160a01b039092168252519081900360200190f35b34801561017757600080fd5b5061018061033f565b60408051918252519081900360200190f35b6000546001600160a01b031690565b600082116101ea576040805162461bcd60e51b8152602060048201526011602482015270125b9d985b1a590818591d995c9d081251607a1b604482015290519081900360640190fd5b662386f26fc100003410156101fe57600080fd5b6000610208610192565b6001600160a01b03166108fc349081150290604051600060405180830381858888f1935050505090508061027b576040805162461bcd60e51b8152602060048201526015602482015274135bdb995e481d1c985b9cd9995c8819985a5b1959605a1b604482015290519081900360640190fd5b506040805160608101825292835260208084019283523484830190815260038054600090815260049093529290912093518455915160018085019190915591516002909301929092558154019055565b600080600060035484111561031d576040805162461bcd60e51b8152602060048201526013602482015272496e646578206f7574206f6620626f756e647360681b604482015290519081900360640190fd5b5050506000908152600460205260409020805460018201546002909201549092565b6003549056fea264697066735822122073899577ef77a840241927d819d234285758e91c3e007d1dd8d5147da6f27aa464736f6c634300060c0033
Deployed Bytecode Sourcemap
1809:1377:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3084:12;3099:7;:5;:7::i;:::-;-1:-1:-1;;;;;3099:12:0;:23;3112:9;3099:23;;;;;;;;;;;;;;;;;;;;;;;3084:38;;3142:7;3134:41;;;;;-1:-1:-1;;;3134:41:0;;;;;;;;;;;;-1:-1:-1;;;3134:41:0;;;;;;;;;;;;;;;3045:138;1809:1377;;;;;2555:413;;;;;;;;;;;;;;;;-1:-1:-1;2555:413:0;;;;;;;:::i;:::-;;2281:262;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2281:262:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;1501:87;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;1501:87:0;;;;;;;;;;;;;;2175:94;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;1501:87;1539:15;1574:6;-1:-1:-1;;;;;1574:6:0;1501:87;:::o;2555:413::-;2665:1;2654:8;:12;2646:42;;;;;-1:-1:-1;;;2646:42:0;;;;;;;;;;;;-1:-1:-1;;;2646:42:0;;;;;;;;;;;;;;;2720:10;2707:9;:23;;2699:32;;;;;;2752:12;2767:7;:5;:7::i;:::-;-1:-1:-1;;;;;2767:12:0;:23;2780:9;2767:23;;;;;;;;;;;;;;;;;;;;;;;2752:38;;2809:7;2801:41;;;;;-1:-1:-1;;;2801:41:0;;;;;;;;;;;;-1:-1:-1;;;2801:41:0;;;;;;;;;;;;;;;-1:-1:-1;2893:39:0;;;;;;;;;;;;;;;;;;2922:9;2893:39;;;;;;2874:15;;;-1:-1:-1;2863:27:0;;;:10;:27;;;;;;;:69;;;;;;;;;;;;;;;;;;;;;;;;2943:17;;;;;2555:413::o;2281:262::-;2338:7;2347;2356;2391:15;;2384:3;:22;;2376:54;;;;;-1:-1:-1;;;2376:54:0;;;;;;;;;;;;-1:-1:-1;;;2376:54:0;;;;;;;;;;;;;;;-1:-1:-1;;;2459:15:0;;;;:10;:15;;;;;:24;;2485:25;;;;2512:22;;;;;2459:24;;2281:262::o;2175:94::-;2246:15;;2175:94;:::o
Swarm Source
ipfs://73899577ef77a840241927d819d234285758e91c3e007d1dd8d5147da6f27aa4
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
BSC | 100.00% | $511.01 | 0.012 | $6.13 |
Loading...
Loading
[ 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.