First of all you have to make sure you control the private key of the account you are sending the funds from, either through metamask or through geth node. Then you would have to do something like:
/// Transfer the funds from the smart contract to the user's address
function Execution (uint _Amount) {
receiver = msg.sender;
receiver.transfer(_Amount);
}
if you don't want to send the funds to the address thats calling the function then try something along the lines of:
/// Transfer the funds from the smart contract to selected user's address
function Execution (address _Address, uint _Amount) {
receiver = _Address;
receiver.transfer(_Amount);
}
This should do the trick if you want to keep track of your current balance I recommend creating a new function:
function getBalance() public view returns (uint256) {
return address(this).balance;
}
Same thing with the balance if you want to retrieve it from another address:
function getBalance(address _Address) public view returns (uint256) {
return _Address.balance;
}
Ps:
Make sure your contract includes the function payable()
if your contract is going to be receiving any amount of eth. Like so:
function() public payable { }