Source Code
Overview
ETH Balance
49.537832138983291031 ETH
Token Holdings
More Info
ContractCreator
Multichain Info
N/A
Latest 25 from a total of 107 transactions
| Transaction Hash |
Method
|
Block
|
From
|
To
|
Amount
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Send Eth | 5511729 | 701 days ago | IN | 0 ETH | 0.00479539 | ||||
| Transfer | 5511715 | 701 days ago | IN | 50 ETH | 0.00185536 | ||||
| Send Eth | 5511615 | 701 days ago | IN | 0 ETH | 0.00673959 | ||||
| Send Eth | 5300723 | 733 days ago | IN | 0 ETH | 0.00382914 | ||||
| Transfer | 5300719 | 733 days ago | IN | 100 ETH | 0.00241106 | ||||
| Send Eth | 5300711 | 733 days ago | IN | 0 ETH | 0.00374265 | ||||
| Transfer | 4905678 | 793 days ago | IN | 0.40479831 ETH | 0.00009018 | ||||
| Transfer | 4905675 | 793 days ago | IN | 0.41481323 ETH | 0.00009596 | ||||
| Transfer | 4905673 | 793 days ago | IN | 0.40682025 ETH | 0.00010053 | ||||
| Transfer | 4905662 | 793 days ago | IN | 0.43207751 ETH | 0.00010495 | ||||
| Transfer | 4905659 | 793 days ago | IN | 0.10326556 ETH | 0.00008978 | ||||
| Transfer | 4905658 | 793 days ago | IN | 0.08736276 ETH | 0.00009148 | ||||
| Transfer | 4905655 | 793 days ago | IN | 0.08917238 ETH | 0.00009785 | ||||
| Transfer | 4905647 | 793 days ago | IN | 0.08923259 ETH | 0.00009507 | ||||
| Transfer | 4905643 | 793 days ago | IN | 0.08909099 ETH | 0.00009493 | ||||
| Transfer | 4905640 | 793 days ago | IN | 0.08681452 ETH | 0.00009657 | ||||
| Transfer | 4905637 | 793 days ago | IN | 0.08647612 ETH | 0.00009976 | ||||
| Transfer | 4905625 | 793 days ago | IN | 0.08658685 ETH | 0.0000956 | ||||
| Transfer | 4905623 | 793 days ago | IN | 0.08914439 ETH | 0.00008978 | ||||
| Transfer | 4905621 | 793 days ago | IN | 0.08427692 ETH | 0.00009196 | ||||
| Transfer | 4905619 | 793 days ago | IN | 0.08685974 ETH | 0.0000931 | ||||
| Transfer | 4905605 | 793 days ago | IN | 0.08308348 ETH | 0.00009775 | ||||
| Transfer | 4905602 | 793 days ago | IN | 0.08616313 ETH | 0.00009272 | ||||
| Transfer | 4905600 | 793 days ago | IN | 0.08900312 ETH | 0.00008984 | ||||
| Transfer | 4905598 | 793 days ago | IN | 0.08666005 ETH | 0.0000926 |
Latest 7 internal transactions
Advanced mode:
Loading...
Loading
Loading...
Loading
Loading...
Loading
Contract Name:
PaymentContract
Compiler Version
v0.8.20+commit.a1b79de6
Contract Source Code (Solidity)
/**
*Submitted for verification at Etherscan.io on 2023-06-16
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
contract PaymentContract {
address public owner;
constructor() {
owner = msg.sender;
}
// 接受其他人的ETH支付
receive() external payable {}
// 将合约内的ETH发送到指定地址,只有owner可调用
function sendEth(address payable recipient, uint256 amount) external onlyOwner {
require(amount <= address(this).balance, "Insufficient balance");
recipient.transfer(amount * 10 **18);
}
// 转让owner权限,只有owner可调用
function transferOwnership(address newOwner) external onlyOwner {
owner = newOwner;
}
// 修饰符:确保只有owner可调用
modifier onlyOwner() {
require(msg.sender == owner, "Only owner can call this function");
_;
}
}Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"sendEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
608060405234801561000f575f80fd5b505f80546001600160a01b031916331790556102ca8061002e5f395ff3fe608060405260043610610036575f3560e01c806349dcbc5e146100415780638da5cb5b14610062578063f2fde38b1461009c575f80fd5b3661003d57005b5f80fd5b34801561004c575f80fd5b5061006061005b3660046101de565b6100bb565b005b34801561006d575f80fd5b505f54610080906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b3480156100a7575f80fd5b506100606100b6366004610208565b61017d565b5f546001600160a01b031633146100ed5760405162461bcd60e51b81526004016100e49061022a565b60405180910390fd5b478111156101345760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b60448201526064016100e4565b6001600160a01b0382166108fc61015383670de0b6b3a764000061026b565b6040518115909202915f818181858888f19350505050158015610178573d5f803e3d5ffd5b505050565b5f546001600160a01b031633146101a65760405162461bcd60e51b81526004016100e49061022a565b5f80546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03811681146101db575f80fd5b50565b5f80604083850312156101ef575f80fd5b82356101fa816101c7565b946020939093013593505050565b5f60208284031215610218575f80fd5b8135610223816101c7565b9392505050565b60208082526021908201527f4f6e6c79206f776e65722063616e2063616c6c20746869732066756e6374696f6040820152603760f91b606082015260800190565b808202811582820484141761028e57634e487b7160e01b5f52601160045260245ffd5b9291505056fea26469706673582212208ccba181ddef84d3f75b80cfa849f7ad9d8b3bac5eabd2145f6f4e258a9851e164736f6c63430008140033
Deployed Bytecode
0x608060405260043610610036575f3560e01c806349dcbc5e146100415780638da5cb5b14610062578063f2fde38b1461009c575f80fd5b3661003d57005b5f80fd5b34801561004c575f80fd5b5061006061005b3660046101de565b6100bb565b005b34801561006d575f80fd5b505f54610080906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b3480156100a7575f80fd5b506100606100b6366004610208565b61017d565b5f546001600160a01b031633146100ed5760405162461bcd60e51b81526004016100e49061022a565b60405180910390fd5b478111156101345760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b60448201526064016100e4565b6001600160a01b0382166108fc61015383670de0b6b3a764000061026b565b6040518115909202915f818181858888f19350505050158015610178573d5f803e3d5ffd5b505050565b5f546001600160a01b031633146101a65760405162461bcd60e51b81526004016100e49061022a565b5f80546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03811681146101db575f80fd5b50565b5f80604083850312156101ef575f80fd5b82356101fa816101c7565b946020939093013593505050565b5f60208284031215610218575f80fd5b8135610223816101c7565b9392505050565b60208082526021908201527f4f6e6c79206f776e65722063616e2063616c6c20746869732066756e6374696f6040820152603760f91b606082015260800190565b808202811582820484141761028e57634e487b7160e01b5f52601160045260245ffd5b9291505056fea26469706673582212208ccba181ddef84d3f75b80cfa849f7ad9d8b3bac5eabd2145f6f4e258a9851e164736f6c63430008140033
Deployed Bytecode Sourcemap
61:804:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;325:209;;;;;;;;;;-1:-1:-1;325:209:0;;;;;:::i;:::-;;:::i;:::-;;93:20;;;;;;;;;;-1:-1:-1;93:20:0;;;;-1:-1:-1;;;;;93:20:0;;;;;;-1:-1:-1;;;;;658:32:1;;;640:51;;628:2;613:18;93:20:0;;;;;;;591:99;;;;;;;;;;-1:-1:-1;591:99:0;;;;;:::i;:::-;;:::i;325:209::-;799:5;;-1:-1:-1;;;;;799:5:0;785:10;:19;777:65;;;;-1:-1:-1;;;777:65:0;;;;;;;:::i;:::-;;;;;;;;;433:21:::1;423:6;:31;;415:64;;;::::0;-1:-1:-1;;;415:64:0;;1566:2:1;415:64:0::1;::::0;::::1;1548:21:1::0;1605:2;1585:18;;;1578:30;-1:-1:-1;;;1624:18:1;;;1617:50;1684:18;;415:64:0::1;1364:344:1::0;415:64:0::1;-1:-1:-1::0;;;;;490:18:0;::::1;:36;509:16;:6:::0;518:7:::1;509:16;:::i;:::-;490:36;::::0;;::::1;::::0;;::::1;::::0;::::1;::::0;;;;;;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;325:209:::0;;:::o;591:99::-;799:5;;-1:-1:-1;;;;;799:5:0;785:10;:19;777:65;;;;-1:-1:-1;;;777:65:0;;;;;;;:::i;:::-;666:5:::1;:16:::0;;-1:-1:-1;;;;;;666:16:0::1;-1:-1:-1::0;;;;;666:16:0;;;::::1;::::0;;;::::1;::::0;;591:99::o;14:139:1:-;-1:-1:-1;;;;;97:31:1;;87:42;;77:70;;143:1;140;133:12;77:70;14:139;:::o;158:331::-;234:6;242;295:2;283:9;274:7;270:23;266:32;263:52;;;311:1;308;301:12;263:52;350:9;337:23;369:39;402:5;369:39;:::i;:::-;427:5;479:2;464:18;;;;451:32;;-1:-1:-1;;;158:331:1:o;702:255::-;761:6;814:2;802:9;793:7;789:23;785:32;782:52;;;830:1;827;820:12;782:52;869:9;856:23;888:39;921:5;888:39;:::i;:::-;946:5;702:255;-1:-1:-1;;;702:255:1:o;962:397::-;1164:2;1146:21;;;1203:2;1183:18;;;1176:30;1242:34;1237:2;1222:18;;1215:62;-1:-1:-1;;;1308:2:1;1293:18;;1286:31;1349:3;1334:19;;962:397::o;1713:265::-;1786:9;;;1817;;1834:15;;;1828:22;;1814:37;1804:168;;1894:10;1889:3;1885:20;1882:1;1875:31;1929:4;1926:1;1919:15;1957:4;1954:1;1947:15;1804:168;1713:265;;;;:::o
Swarm Source
ipfs://8ccba181ddef84d3f75b80cfa849f7ad9d8b3bac5eabd2145f6f4e258a9851e1
Loading...
Loading
Loading...
Loading
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.