0

Is there a way to receive a boolean response when sending Ether from one contract to another contract function? I understand that transactions return transaction hashes, but is there a safe way to call the other contract function to receive a boolean, even if that other contract is a payable function?

1 Answer 1

2

For transactions, there is no way to get return values immediately as transaction confirmation happens eventually. Transaction hash confirms the your transaction has been accepted by a node, but how successful the transaction (txns fail due to many reasons and most common to expect is out of gas), could be known only through the receipt.

Your Answer

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

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