Source Code
Overview
ETH Balance
0 ETH
Token Holdings
More Info
ContractCreator
Multichain Info
N/A
Latest 25 from a total of 48 transactions
| Transaction Hash |
Method
|
Block
|
From
|
To
|
Amount
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Request | 10056449 | 8 hrs ago | IN | 0 ETH | 0.00036328 | ||||
| Request | 10021797 | 5 days ago | IN | 0 ETH | 0.00021422 | ||||
| Request | 10021784 | 5 days ago | IN | 0 ETH | 0.00003526 | ||||
| Request | 9857933 | 30 days ago | IN | 0 ETH | 0.00021421 | ||||
| Request | 9551865 | 74 days ago | IN | 0 ETH | 0.00021421 | ||||
| Request | 9330701 | 105 days ago | IN | 0 ETH | 0.00021421 | ||||
| Request | 9290956 | 111 days ago | IN | 0 ETH | 0.00021421 | ||||
| Request | 9290646 | 111 days ago | IN | 0 ETH | 0.00021421 | ||||
| Request | 9126306 | 135 days ago | IN | 0 ETH | 0.00000057 | ||||
| Request | 9020092 | 150 days ago | IN | 0 ETH | 0.00000353 | ||||
| Request | 8975699 | 156 days ago | IN | 0 ETH | 0.00064303 | ||||
| Request | 8975654 | 156 days ago | IN | 0 ETH | 0.00039694 | ||||
| Request | 8936668 | 161 days ago | IN | 0 ETH | 0.00021421 | ||||
| Request | 8654372 | 201 days ago | IN | 0 ETH | 0.00021432 | ||||
| Request | 8519747 | 220 days ago | IN | 0 ETH | 0.00000024 | ||||
| Request | 8446677 | 230 days ago | IN | 0 ETH | 0.00021421 | ||||
| Request | 8446675 | 230 days ago | IN | 0 ETH | 0.00021421 | ||||
| Request | 8261635 | 256 days ago | IN | 0 ETH | 0.00450827 | ||||
| Request | 8261629 | 256 days ago | IN | 0 ETH | 0.00516029 | ||||
| Request | 8248713 | 258 days ago | IN | 0 ETH | 0.00368499 | ||||
| Request | 8241830 | 259 days ago | IN | 0 ETH | 0.00185792 | ||||
| Request | 7549222 | 359 days ago | IN | 0 ETH | 0.000372 | ||||
| Request | 7546291 | 359 days ago | IN | 0 ETH | 0.00284498 | ||||
| Request | 7455720 | 372 days ago | IN | 0 ETH | 0.00105318 | ||||
| Request | 7248187 | 402 days ago | IN | 0 ETH | 0.00070502 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Contract Name:
Faucet
Compiler Version
v0.8.20+commit.a1b79de6
Contract Source Code (Solidity)
/**
*Submitted for verification at Etherscan.io on 2023-06-06
*/
/**
*Submitted for verification at Etherscan.io on 2021-11-22
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8;
interface ERC20 {
function transfer(address to, uint256 value) external returns (bool);
function transferFrom(address from, address to, uint256 value) external returns (bool);
function approve(address spender, uint tokens) external returns (bool success);
function balanceOf(address beneficiary) view external returns (uint balance);
event Transfer(address indexed from, address indexed to, uint256 value);
}
contract Faucet {
ERC20 public pinakion;
mapping(address => bool) public withdrewAlready;
constructor(ERC20 _pinakion) public {
pinakion = _pinakion;
}
function balance() view public returns(uint balance) {
return pinakion.balanceOf(address(this));
}
function request() public {
require(!withdrewAlready[msg.sender], "You have used this faucet already. If you need more tokens, please use another address.");
pinakion.transfer(msg.sender, 10000000000000000000000);
withdrewAlready[msg.sender] = true;
}
}Contract ABI
API[{"inputs":[{"internalType":"contract ERC20","name":"_pinakion","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"balance","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pinakion","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"request","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"withdrewAlready","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]Contract Creation Code
608060405234801561000f575f80fd5b506040516103ab3803806103ab83398101604081905261002e91610052565b5f80546001600160a01b0319166001600160a01b039290921691909117905561007f565b5f60208284031215610062575f80fd5b81516001600160a01b0381168114610078575f80fd5b9392505050565b61031f8061008c5f395ff3fe608060405234801561000f575f80fd5b506004361061004a575f3560e01c8063338cdca11461004e578063b69ef8a814610058578063d61c40dc14610073578063fbf405b0146100a5575b5f80fd5b6100566100cf565b005b610060610217565b6040519081526020015b60405180910390f35b610095610081366004610286565b60016020525f908152604090205460ff1681565b604051901515815260200161006a565b5f546100b7906001600160a01b031681565b6040516001600160a01b03909116815260200161006a565b335f9081526001602052604090205460ff161561017e5760405162461bcd60e51b815260206004820152605760248201527f596f752068617665207573656420746869732066617563657420616c7265616460448201527f792e20496620796f75206e656564206d6f726520746f6b656e732c20706c656160648201527f73652075736520616e6f7468657220616464726573732e000000000000000000608482015260a40160405180910390fd5b5f5460405163a9059cbb60e01b815233600482015269021e19e0c9bab240000060248201526001600160a01b039091169063a9059cbb906044016020604051808303815f875af11580156101d4573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101f891906102b3565b50335f908152600160208190526040909120805460ff19169091179055565b5f80546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa15801561025d573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061028191906102d2565b905090565b5f60208284031215610296575f80fd5b81356001600160a01b03811681146102ac575f80fd5b9392505050565b5f602082840312156102c3575f80fd5b815180151581146102ac575f80fd5b5f602082840312156102e2575f80fd5b505191905056fea2646970667358221220021dedc1c6135536bd85509b75e1172c8260e7d5569e9a3baae5034b6e591faa64736f6c63430008140033000000000000000000000000a1ee4d32bdbca69cdb445d66faa3804affa24bfe
Deployed Bytecode
0x608060405234801561000f575f80fd5b506004361061004a575f3560e01c8063338cdca11461004e578063b69ef8a814610058578063d61c40dc14610073578063fbf405b0146100a5575b5f80fd5b6100566100cf565b005b610060610217565b6040519081526020015b60405180910390f35b610095610081366004610286565b60016020525f908152604090205460ff1681565b604051901515815260200161006a565b5f546100b7906001600160a01b031681565b6040516001600160a01b03909116815260200161006a565b335f9081526001602052604090205460ff161561017e5760405162461bcd60e51b815260206004820152605760248201527f596f752068617665207573656420746869732066617563657420616c7265616460448201527f792e20496620796f75206e656564206d6f726520746f6b656e732c20706c656160648201527f73652075736520616e6f7468657220616464726573732e000000000000000000608482015260a40160405180910390fd5b5f5460405163a9059cbb60e01b815233600482015269021e19e0c9bab240000060248201526001600160a01b039091169063a9059cbb906044016020604051808303815f875af11580156101d4573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101f891906102b3565b50335f908152600160208190526040909120805460ff19169091179055565b5f80546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa15801561025d573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061028191906102d2565b905090565b5f60208284031215610296575f80fd5b81356001600160a01b03811681146102ac575f80fd5b9392505050565b5f602082840312156102c3575f80fd5b815180151581146102ac575f80fd5b5f602082840312156102e2575f80fd5b505191905056fea2646970667358221220021dedc1c6135536bd85509b75e1172c8260e7d5569e9a3baae5034b6e591faa64736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000a1ee4d32bdbca69cdb445d66faa3804affa24bfe
-----Decoded View---------------
Arg [0] : _pinakion (address): 0xA1eE4D32bdBcA69cdb445D66fAA3804aFFa24bFE
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000a1ee4d32bdbca69cdb445d66faa3804affa24bfe
Deployed Bytecode Sourcemap
569:617:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;898:283;;;:::i;:::-;;777:113;;;:::i;:::-;;;160:25:1;;;148:2;133:18;777:113:0;;;;;;;;630:47;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;652:14:1;;645:22;627:41;;615:2;600:18;630:47:0;487:187:1;596:21:0;;;;;-1:-1:-1;;;;;596:21:0;;;;;;-1:-1:-1;;;;;855:32:1;;;837:51;;825:2;810:18;596:21:0;679:215:1;898:283:0;960:10;944:27;;;;:15;:27;;;;;;;;943:28;935:128;;;;-1:-1:-1;;;935:128:0;;1101:2:1;935:128:0;;;1083:21:1;1140:2;1120:18;;;1113:30;1179:34;1159:18;;;1152:62;1250:34;1230:18;;;1223:62;1322:25;1301:19;;;1294:54;1365:19;;935:128:0;;;;;;;;1074:8;;:54;;-1:-1:-1;;;1074:54:0;;1092:10;1074:54;;;1599:51:1;1104:23:0;1666:18:1;;;1659:34;-1:-1:-1;;;;;1074:8:0;;;;:17;;1572:18:1;;1074:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;1155:10:0;1139:27;;;;1169:4;1139:27;;;;;;;;:34;;-1:-1:-1;;1139:34:0;;;;;;898:283::o;777:113::-;816:12;849:8;;:33;;-1:-1:-1;;;849:33:0;;876:4;849:33;;;837:51:1;-1:-1:-1;;;;;849:8:0;;;;:18;;810::1;;849:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;842:40;;777:113;:::o;196:286:1:-;255:6;308:2;296:9;287:7;283:23;279:32;276:52;;;324:1;321;314:12;276:52;350:23;;-1:-1:-1;;;;;402:31:1;;392:42;;382:70;;448:1;445;438:12;382:70;471:5;196:286;-1:-1:-1;;;196:286:1:o;1704:277::-;1771:6;1824:2;1812:9;1803:7;1799:23;1795:32;1792:52;;;1840:1;1837;1830:12;1792:52;1872:9;1866:16;1925:5;1918:13;1911:21;1904:5;1901:32;1891:60;;1947:1;1944;1937:12;2194:184;2264:6;2317:2;2305:9;2296:7;2292:23;2288:32;2285:52;;;2333:1;2330;2323:12;2285:52;-1:-1:-1;2356:16:1;;2194:184;-1:-1:-1;2194:184:1:o
Swarm Source
ipfs://021dedc1c6135536bd85509b75e1172c8260e7d5569e9a3baae5034b6e591faa
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.