Just to confirm if I understood all the docs correctly. Basically to get them to work I have to:
- Have a metadata program that adheres to the token-metadata interface. Critically, it needs to handle the
Emitinstruction with the specified discriminator
b"\xfa\xa6\xb4\xfa\r\x0c\xb8F"and instruction args. This instruction must set the return data to the raw bytes of the token's TokenMetadata struct in TLV format, or a subslice of it depending on the instruction args.
- Set the metadata_address to this metadata program when I initialize the mint with the metadata-pointer extension
- Now when wallets or dapps need to read the token metadata they call/index the
Emitinstruction and read the return data