I have my contract address = "0x70094cae9a74c9ae08aa2ae643bcfdd9fa9edfee"
My contract pay back ether to some account: msg.sender.send( amountToGain ) For example msg.sender should gain amountToGain amount. I would like to see this payment using geth if possible.
How could I view the list of value(ether) sent from my contract address to other addresses? The addr.send(amnt)'s act/transaction from=>to (value) does not show up on the block explorer. So by using this function we can anonymously sent money to other addresses and FBI cannot track us.
I have used this script(Common useful JavaScript snippets for geth) but it does not return anything when I used my contract address and msg.sender.send( amountToGain ) action is actually performed.
For example I view following:
tx hash : 0x98fb1385453e7f22662789dde2fb88fc4d9312371fc9326f5113599f6d036728
nonce : 8247
blockHash : 0x942aececdc56a5bdd3265f3c9e898152fdb66d7ea6e91ba1377896a46daf1c25
blockNumber : 1346471
transactionIndex: 0
from : 0x6af0204187a93710317542d383a1b547fa42e705
to : 0x70094cae9a74c9ae08aa2ae643bcfdd9fa9edfee
value : 0
time : 1498054743 Wed, 21 Jun 2017 14:19:03 GMT
But the transaction: from contract(0x70094cae9a74c9ae08aa2ae643bcfdd9fa9edfee) to client(0x6af0204187a93710317542d383a1b547fa42e705) there is money has been transferred, which I cannot view as a transaction.
So basically we cannot trace/proof the sent money amount and whom the contract sent to.
[Q] Could we verify the value has been sent to specific account using web3.debug.traceTransaction( tx )?
Example Contract:
pragma solidity ^0.4.0;
contract TestSend {
uint public balance ;
function TestSend() {
balance = 0 ;
}
function () {
throw ;
}
function pay() payable public {
balance += msg.value ;
}
function withdraw(address addr,uint amnt) public {
balance -= amnt ;
if (! addr.send(amnt)) {
balance += amnt ;
}
}
}
logsin the return value fromgetTransactionReceipt(). – carver Jun 25 '17 at 16:30