Can the ethereum attach a message in transaction? for example, l want attach the message "hello" in common transaction(not contract create). thanks

1 Answer 1


Yes, every transaction has a data field. In the case of calls to smart contracts, the data field is used to specify what function is being called and with what parameters.

For a simple transfer of ether to a non-contract (an "externally owned account"), the data field is unused, so you can put whatever data you want in there.


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.