5

What happens / what is the defense against creating a transaction using a validator that isn't expecting an asset type?

In other words: the validator determines "Can this UTXO be spent in this transaction", but is there something on-chain that determines "Can this UTXO be created with this validator script?"

For example: Validator script says "UTXO can be spent if ada amount is 100 ada"; someone creates a transaction that creates a UTXO of 100 USDT locked by this transaction; Is that 100 USDT locked forever?

1 Answer 1

5

No validation happens for outputs: Anybody can send anything with arbitrary datum to any address.

So in your example, those 100 USDT would indeed be locked forever.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.