<p>Sounds like cardano-cli isn't running properly for you, so lets start with something simple to prove that it is working.</p>
<p>Can you successfully run '<strong>cardano-cli --version</strong>' and get the version number?</p>
<p>Also, as others have mentioned here, '<strong>cardano-cli query utxo --address $(cat payment.addr) --mainnet</strong>' is all you need to list the details.</p>

CC BY-SA 4.0
2022-03-09T23:19:07.417Z
2022-03-09T23:19:07.417Z
MC_Brisbane - JUST Pool
<p>Thanks for the quick response.</p>
<p>I am using below command but not getting any output. How could we create Draft the transaction without transaction hash and index of the UTXO. Please help me.</p>
<p>cardano-cli query utxo --address $(cat payment.addr) --mainnet</p>
<p>Thanks.</p>

CC BY-SA 4.0
2022-03-08T17:29:48.717Z
sorry my english is not so great and i loose it a bit your question. 1. i asked you please for an error message, 2. the "$(cat payment.addr) " , is that file in the same folder you are executing the command? 3. can you replace the "$(cat payment.addr)" with your address? and let us know if you still have an issue. last but not least :) if any question helps you, please vote with the upper arrow :)
TTS17
CC BY-SA 4.0
2022-03-08T18:15:20.010Z
Yes, payment.addr file in in the same folder from where we are shooting above command nor we are getting any error to run the command even we try to put direct address in the command but same result not getting any output. Output is coming blank without any error.
Pradeep Kumar
CC BY-SA 4.0
2022-03-09T23:57:18.040Z
Please use reply within threads instead of creating new answer to the post, so that it's easier for you to answer respective queries (you have currently - possibly unknowingly - overlooked other questions). This is also easier for an onlooker to follow the flow of post
RdLrT
CC BY-SA 4.0
2022-03-13T15:06:21.913Z
Okay, I am still struggling. Please help me on this.
Pradeep Kumar
CC BY-SA 4.0
2022-03-08T14:52:49.717Z
2022-03-08T14:52:49.717Z
Pradeep Kumar
<p>Yes, payment.addr file in in the same folder from where we are shooting above command nor we are getting any error to run the command even we try to put direct address in the command but same result not getting any output. Output is coming blank without any error</p>
<p>Thanks.</p>

CC BY-SA 4.0
2022-03-09T17:54:08.607Z
2022-03-09T17:54:08.607Z
Pradeep Kumar
<p>We are unable to get transaction hash and index of the UTXO to spend. Actually we are creating simple transaction and were using this link <a href="https://developers.cardano.org/docs/stake-pool-course/handbook/create-simple-transaction" rel="nofollow noreferrer">https://developers.cardano.org/docs/stake-pool-course/handbook/create-simple-transaction</a></p>
<p>but we are not getting transaction hash and index of the UTXO to create draft transaction. Please help us to resolve it and give me any suggestion to sort out it.</p>
<p>Thanks.</p>

CC BY-SA 4.0
2022-03-08T10:27:55.900Z
Why are you not getting it? What error are you receiving and what command are you executing?
Mateus
<transaction>
Unable to get transaction hash and index of the UTXO to spend
# Unable to get transaction hash and index of the UTXO to spend

(Asked by: username_0 on 2022-03-08)

We are unable to get transaction hash and index of the UTXO to spend. Actually we are creating simple transaction and were using this link <https://developers.cardano.org/docs/stake-pool-course/handbook/create-simple-transaction>

but we are not getting transaction hash and index of the UTXO to create draft transaction. Please help us to resolve it and give me any suggestion to sort out it.

Thanks.

**Tags:** transaction
> **Comments:**
> **username_1**: Why are you not getting it? What error are you receiving and what command are you executing?  

---

## 3 answers

### Answer by username_2 on 2022-03-09. Score: 1

Sounds like cardano-cli isn't running properly for you, so lets start with something simple to prove that it is working.

Can you successfully run '**cardano-cli --version**' and get the version number?

Also, as others have mentioned here, '**cardano-cli query utxo --address $(cat payment.addr) --mainnet**' is all you need to list the details.


---

### Answer by username_0 on 2022-03-08. Score: 0

Thanks for the quick response.

I am using below command but not getting any output. How could we create Draft the transaction without transaction hash and index of the UTXO. Please help me.

cardano-cli query utxo --address $(cat payment.addr) --mainnet

Thanks.

> **Comments:**
> **username_3**: sorry my english is not so great and i loose it a bit your question. 1. i asked you please for an error message, 2. the "$(cat payment.addr) " , is that file in the same folder you are executing the command? 3. can you replace the "$(cat payment.addr)" with your address? and let us know if you still have an issue. last but not least :) if any question helps you, please vote with the upper arrow :)  
> **username_0**: Yes, payment.addr file in in the same folder from where we are shooting above command nor we are getting any error to run the command even we try to put direct address in the command but same result not getting any output. Output is coming blank without any error.  
> **username_4**: Please use reply within threads instead of creating new answer to the post, so that it's easier for you to answer respective queries (you have currently - possibly unknowingly - overlooked other questions). This is also easier for an onlooker to follow the flow of post  
> **username_0**: Okay, I am still struggling. Please help me on this.  

---

### Answer by username_0 on 2022-03-09. Score: 0

Yes, payment.addr file in in the same folder from where we are shooting above command nor we are getting any error to run the command even we try to put direct address in the command but same result not getting any output. Output is coming blank without any error

Thanks.


---

