Metadata
Apart from the name and symbol the metadata is not stored on the token itself. We only store the metadata hash.
We actually emit following event on EVM level:
Where the metadata is "logged", i.e. not directly retrievable via storage on the actual token, but it can be searched via the event logs. Together with the saved metadata hash and the provided metadata from the log you can verify that it really is the same metadata if you hash the logged metadata in the following combination:
Hashing this in solidity with
will give you the correct metadata hash. Instead of using solidity you can also use JS, Python, or whatever you want to generate the metadata hash.
This saves a lot of gas while still ensuring that the data is actually on the blockchain.
Last updated