What is data in ERC1155?

Mint, mintBatch, tranferBatch... - all those contain data as bytes argument. What is the purpose of that? What could I possibly specify there?

If the destination address (to) is that of a contract which implements interface IERC1155Receiver, then data will be passed to one of the two IERC1155Receiver functions implemented in that contract (either onERC1155Received or onERC1155BatchReceived).

1 Like