ERC1155 Modifying token metadata

Hi @VadneyK,

Welcome to the community :wave:.

If using the token URI scheme with clients replacing {id} then there isn't a need to change onchain.
https://eips.ethereum.org/EIPS/eip-1155#metadata

I assume that updating the database and modifying the metadata can all happen off chain.

You could listen for the TransferSingle event and then add your data to an external database and update the metadata.


OpenZeppelin Contracts has an ERC1155 implementation that you could extend.

There is also a Preset ERC1155 contract that you could experiment with.

I have created a simple example: Create an ERC1155


Functionality needs to conform to the EIP for it to be an ERC1155 token, so you couldn't change the interface. https://eips.ethereum.org/EIPS/eip-1155#specification