user1108: How do I list all Utxos that is in my script as well as the public key addresses that it came from.I am using the result as a parameter for a different function.I want to know if a public key address has already send a transaction to this script , if they have then do something , and if they have not then do something else.

user4427: sorry can you please be more specific?
what exactly do you mean "ist all Utxos that were consumed by my script " ?
do you need a list of UTXOs for a specific address?
and additionally, do you need the address from the sender of this UTXOs?
if yes, please see below.
find all UTXOs
fullUtxo=/fullUtxo.out
myAddr=addr1qljkdlgamadjnlh8xmgxln4535kj5j3lgl9mawrr99nkrt2meqa2z
cardano-cli query utxo --address $myAddr --mainnet > $fullUtxo

find sender
        in_addr=$(curl -H 'project_id: MainnetBlockfrostProjectNameID' https://cardano-mainnet.blockfrost.io/api/v0/txs/${tx_hash}/utxos | jq '.inputs' | jq '.[0]' | jq '.address' | sed 's/^.//;s/.$//')

if that helps you, would be great if you vote for my answer and give me some credits :)
have a nice day mate,
pool operator for TTS17

1108: <p>How do I list all Utxos that is in my script as well as the public key addresses that it came from.I am using the result as a parameter for a different function.I want to know if a public key address has already send a transaction to this script , if they have then do something , and if they have not then do something else.</p>
 4427: <p>sorry can you please be more specific?</p>
<p>what exactly do you mean &quot;ist all Utxos that were consumed by my script &quot; ?</p>
<p>do you need a list of UTXOs for a specific address?
and additionally, do you need the address from the sender of this UTXOs?</p>
<p>if yes, please see below.</p>
<p>find all UTXOs</p>
<pre><code>fullUtxo=/fullUtxo.out
myAddr=addr1qljkdlgamadjnlh8xmgxln4535kj5j3lgl9mawrr99nkrt2meqa2z
cardano-cli query utxo --address $myAddr --mainnet &gt; $fullUtxo
</code></pre>
<p>find sender</p>
<pre><code>        in_addr=$(curl -H 'project_id: MainnetBlockfrostProjectNameID' https://cardano-mainnet.blockfrost.io/api/v0/txs/${tx_hash}/utxos | jq '.inputs' | jq '.[0]' | jq '.address' | sed 's/^.//;s/.$//')
</code></pre>
<p>if that helps you, would be great if you vote for my answer and give me some credits :)</p>
<p>have a nice day mate,
pool operator for TTS17</p>
