<p>Not sure if I have it clear, but you can't use outputs of one transaction as inputs in the same transaction because every UTxO is unique and once used, you can't reuse it.</p>
<p>But you can use as many eUTxO's as you want in your transaction. It makes eUTxO model very powerful because you can involve many validator scripts and minting policies in same transaction.</p>

CC BY-SA 4.0
2021-09-22T15:23:06.403Z
What I would like to do is link contracts, I would guess that this is possible but I do see how the Plutus.tx functions need to be used to implement this. Say is have an script at address 1 that mints an NFT for 10 ada, also consider a script at address 2 which create an action. Then I would like to link these two scripts in one transaction.
Fermat
CC BY-SA 4.0
2021-09-23T16:06:25.410Z
Yes, you can do that in the same transaction.
georgeos
CC BY-SA 4.0
2021-09-21T17:27:20.903Z
2021-09-21T17:27:20.903Z
georgeos
<p>is it possible to implement a plutus script that consumes two UTXO's where the output of one is used as an redeemer for the second?</p>

<plutus><eutxo>
using an output of a transaction in the same transaction
# using an output of a transaction in the same transaction

(Asked by: username_0 on 2021-09-21)

is it possible to implement a plutus script that consumes two UTXO's where the output of one is used as an redeemer for the second?

**Tags:** plutus, eutxo

---

## 1 answers

### Answer by username_1 on 2021-09-21. Score: 1

Not sure if I have it clear, but you can't use outputs of one transaction as inputs in the same transaction because every UTxO is unique and once used, you can't reuse it.

But you can use as many eUTxO's as you want in your transaction. It makes eUTxO model very powerful because you can involve many validator scripts and minting policies in same transaction.

> **Comments:**
> **username_0**: What I would like to do is link contracts, I would guess that this is possible but I do see how the Plutus.tx functions need to be used to implement this. Say is have an script at address 1 that mints an NFT for 10 ada, also consider a script at address 2 which create an action. Then I would like to link these two scripts in one transaction.  
> **username_1**: Yes, you can do that in the same transaction.  

---

