How to determine if a transaction is a required transaction?

Cregis determines the uniqueness of a currency is chain_id+token_id. The unique currency can be determined based on these two attributes.