Does coin input in a transaction guarantee that it was added by the input owner?

If I investigate a transaction inputs of type Coin can I rely on the fact that these inputs were added by the owner?

Like if I want to write a contract function that can be called only by an NFT owner - can I just check the tx inputs for the presence of this NFT (asset id) or that wouldn’t be enough?

2 Likes

Great question!

Currently, an input can only be attached to a transaction if it’s provided by the UTXO owner (contracts aside).

In the future, we’d like to add support for “read-only” coins, which could be added by anybody, however that’s not something you need to worry about at the moment.

3 Likes

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.