I mint many NFT for our game project and give to users.
My smart-contract must check that NFT mint by me.
so, what is the best way to check?
- check Metadata's Update Authority.
- check Metadata's Collection Address.
- is there any other way?
The best way to verify any NFT onchain is to check for the verified creator on metadata account of the mint. If the collection is set on them then you can verify the collection as well.
More detailed answer can be found here -
On Chain: How can i verify if an account holds a NFT of a particular collection?
You can just that check your mint authority address is the wallet address that minted the NFT.