it would be great to check the validity of the desired contract TXID by decoding the TX tags and check for the existence of the main tags:
As in:
App-Name: SmartWeaveContract
Content-Type: application/json
And the existence of Contract-Src as a tag key