0

I send some ether in my private test system as follows -

eth.sendTransaction({'from':eth.coinbase, 'to':'0xfc1bdf06d1150e6eeeb229a8500b09df8ccdcbbd', 'value':web3.toWei(3, 'ether')}) "0x1e20e5377e0d418716a74d94a4d60090abcd9e93ad4c847be0cfa78db4477b58"

eth.pendingTransactions []

eth.getTransactionReceipt("0x1e20e5377e0d418716a74d94a4d60090abcd9e93ad4c847be0cfa78db4477b58") {

blockHash: "0xb599e7130d2b4f3b8960922781fdae0e6bcb883fca3bc0c3272b971d1b5a0322", blockNumber: 456, contractAddress: null, cumulativeGasUsed: 21000, from: "0xfcad53c780a4f6c66b3daca331fe72fc6559c367", gasUsed: 21000, logs: [], logsBloom: "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", status: "0x1", to: "0xfc1bdf06d1150e6eeeb229a8500b09df8ccdcbbd",
transactionHash: "0x1e20e5377e0d418716a74d94a4d60090abcd9e93ad4c847be0cfa78db4477b58", transactionIndex: 0 }

I am using Proof of Authority. I can see the sending and receiving accounts but I cannot see the actual amount sent (3eth). Is that included somewhere in the getTransactionReceipt?

2
  • If the transaction was successfully mined into a block and the block has had a number of comfirmations, you can be quite certain the ether was indeed transferred
    – Henk
    Apr 13, 2018 at 12:09
  • Yes that is all fine, but I want to check so that it can be confirmed. Also in a real app, we need a dispute resolution option for cases when someone claims the money was not received. I assume it stated in the TransactionReceipt somehow. Apr 13, 2018 at 12:12

1 Answer 1

1

You can call getTransaction, which returns (among other things) the value field of the transaction.

If the transaction receipt has status: 1, then the transaction was successful, and the wei in the transaction's value field was transferred.

1
  • That works, I just tested it. The box is too small here it copy paste the output. Apr 13, 2018 at 12:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.