I read here Is it possible to insert some custom data in the DATA field of an Ethereum Transaction? that it is not possible to write in the data field of a transaction, even if it is a simple balance transfer.
But I was able send a transaction (with ethers io library with the method sendtransaction) after overidding the tx data field with data 0xcAdd..,
The transaction was send to Ropsten and it was mined and confirmed in a block and the data were shown in the dtaa field .
How is this possible? Can we write in data field whatever we want by overidding the tx before sending it to blockchain?

1 Answer 1


Yes you can but you should be aware of some things.

A simple ether balance transfer will still run some contract code.

Because code runs, there are ways a user can be tricked to run code that harms the user: for example, a user could be tricked to lose their tokens..


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.