Instead of txId it could also be hash of a script

Instead of txId it could also be hash of a script