1

I'm doing some research on how the transactions are made in Ethereum. I got reading the code of Geth and the Yellow Paper that a Smart Contract method call with a value on the payload will transfer ETH from your account to the SC, and you can read the value through msg.value, which under the hood is a CALLVALUE OpCode.

My question is, is this CALLVALUE opcode used in more places? specifically, I would like to know if this is used in transfers between EOAs

Thanks in advance

1 Answer 1

0

CALLVALUE just return the amount of ether transferred. It doesn't change the balance of the contract.

The opcode CALL is used to transfer ether amounts to another contract or EOA.

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.