0

I am trying to include a message for transparency reasons when performing an ERC-20 token transfer from a safe. I haven't been able to find a way to do this through the transaction builder, or when initiating a token transfer.

I would like to include either a message as a string, or if required an encoded version of the message in the "data" field if that is the correct one, so that the public can see why the payment was made.

Chat support guided me here, hoping I can get some quick assistance on this matter.

1
  • How are you building the transaction? Are you using some library like ethers.js or web3.js? Commented Jun 14 at 5:17

1 Answer 1

0

I am trying to include a message for transparency reasons when performing an ERC-20 token transfer from a safe.

ERC-20 does not support additional data for transfer(). You would need to use better, modern, token standards for this.

With ERC-20 you can do this with two transactions approve() and later call a smart contract function makeTransaction(note) which calls ERC20.transferFrom().

However it is very klunky user interaction and it is better just not to use ERC-20 if you can choose a token standard.

1
  • Thanks for the details Mikko. I have sorted this issue.
    – Sarah
    Commented Jun 17 at 20:42

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.