EtherWallet

Description:

Smart contract deployed on Ethereum.

Blockchain: Ethereum

Source Code: View Code On The Blockchain

Solidity Source Code:

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.26;

contract EtherWallet {
    address payable public owner;

    constructor() {
        owner = payable(msg.sender);
    }

    receive() external payable {}

    function withdraw(uint256 _amount) external {
        require(msg.sender == owner, "caller is not owner");
        payable(msg.sender).transfer(_amount);
    }

    function getBalance() external view returns (uint256) {
        return address(this).balance;
    }
}

Tags:
addr:0x34c62a0fd33d960beeff502420c837ab5cc99433|verified:true|block:23661536|tx:0x2d1c9c2cab98fc40eee67d66bafe439396323c75931f5b967714383fc0a28298|first_check:1761484193

Submitted on: 2025-10-26 14:09:54

Comments

Log in to comment.

No comments yet.