# Unable to get transaction hash and index of the UTXO

**URL:** <https://forum.cardano.org/t/unable-to-get-transaction-hash-and-index-of-the-utxo/97218>\
**Category:** Transaction Metadata\
**Tags:** cardano\
**Created:** [8 March 2022 17:28 UTC](https://forum.cardano.org/t/unable-to-get-transaction-hash-and-index-of-the-utxo/97218 "2022-03-08T17:28:34Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![pradeeppks](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/pradeeppks/32/52022_2.png) [@pradeeppks](https://forum.cardano.org/u/pradeeppks)\
**Post date:** [8 March 2022 17:28 UTC](https://forum.cardano.org/t/unable-to-get-transaction-hash-and-index-of-the-utxo/97218/1 "2022-03-08T17:28:34Z")

</div>

Hi,

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 [Create Simple Transaction | Cardano Developer Portal](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.I am using below command. Please help us to resolve it and give me any suggestion to sort out it.

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

Thanks.

---

<div class="post-metadata">

**Author:** ![HeptaSean](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/heptasean/32/82306_2.png) [@HeptaSean](https://forum.cardano.org/u/HeptaSean)\
**Post date:** [8 March 2022 17:38 UTC](https://forum.cardano.org/t/unable-to-get-transaction-hash-and-index-of-the-utxo/97218/2 "2022-03-08T17:38:16Z")

</div>

Really hard to tell from the information you give.

Do you get an error? Or just no UTxOs at the address you give `cardano-cli`? Is the address correct (what is in `payment.addr`)? Is the node fully synced?

---

<div class="post-metadata">

**Author:** ![pradeeppks](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/pradeeppks/32/52022_2.png) [@pradeeppks](https://forum.cardano.org/u/pradeeppks)\
**Post date:** [8 March 2022 18:06 UTC](https://forum.cardano.org/t/unable-to-get-transaction-hash-and-index-of-the-utxo/97218/3 "2022-03-08T18:06:05Z")

</div>

Hi,

I really appreciate with quick response. We are not getting any error while issuing above command. Yes Payment address i.e (payment.addr) is correct. Node is running and well synced.

Thanks.

---

<div class="post-metadata">

**Author:** ![HeptaSean](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/heptasean/32/82306_2.png) [@HeptaSean](https://forum.cardano.org/u/HeptaSean)\
**Post date:** [8 March 2022 18:46 UTC](https://forum.cardano.org/t/unable-to-get-transaction-hash-and-index-of-the-utxo/97218/4 "2022-03-08T18:46:33Z")

</div>

> [@pradeeppks](#):
>
> Yes Payment address i.e (payment.addr) is correct.

Can you tell us the address? Have you looked at Cardanoscan if there really are UTxOs on that address?

---

<div class="post-metadata">

**Author:** ![pradeeppks](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/pradeeppks/32/52022_2.png) [@pradeeppks](https://forum.cardano.org/u/pradeeppks)\
**Post date:** [8 March 2022 19:06 UTC](https://forum.cardano.org/t/unable-to-get-transaction-hash-and-index-of-the-utxo/97218/5 "2022-03-08T19:06:15Z")

</div>

Hi,

Our address is `addr1qxdewlw5v7qah4dx8yh40znqwn4e4jfsv040vur2sl9ej88qx4wzdc0zymqlnfqnc25qwuytqpntzqhx6d2g00pzauxqf2ckwt`

Thanks.

---

<div class="post-metadata">

**Author:** ![HeptaSean](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/heptasean/32/82306_2.png) [@HeptaSean](https://forum.cardano.org/u/HeptaSean)\
**Post date:** [8 March 2022 19:10 UTC](https://forum.cardano.org/t/unable-to-get-transaction-hash-and-index-of-the-utxo/97218/6 "2022-03-08T19:10:52Z")

</div>

> [@pradeeppks](#):
>
> Our address is addr1qxdewlw5v7qah4dx8yh40znqwn4e4jfsv040vur2sl9ej88qx4wzdc0zymqlnfqnc25qwuytqpntzqhx6d2g00pzauxqf2ckwt

That address never had any funds on it:  
[https://cardanoscan.io/address/addr1qxdewlw5v7qah4dx8yh40znqwn4e4jfsv040vur2sl9ej88qx4wzdc0zymqlnfqnc25qwuytqpntzqhx6d2g00pzauxqf2ckwt](https://cardanoscan.io/address/addr1qxdewlw5v7qah4dx8yh40znqwn4e4jfsv040vur2sl9ej88qx4wzdc0zymqlnfqnc25qwuytqpntzqhx6d2g00pzauxqf2ckwt)

Then there can be no UTxOs. UTxOs are unspent transaction outputs, outputs of transactions that have sent something _to_ this address and that have not been spent in further transactions up to now. If noone ever sent anything to an address, that address doesn’t have any UTxOs.

Whatever guide you are following, I’m sure that it says before that step that you should transfer something to the address you want to use.

Edit: Had a look at the guide. It really doesn’t say it, but it probably should: Before you can use that address, there have to be funds on it.

Also: It later uses `build-raw`, where `build` would be simpler: No `protocol.json` download, no manual calculation of fees, just one step before the signing.

---

<div class="post-metadata">

**Author:** ![DinoDude](https://avatars.discourse-cdn.com/v4/letter/d/f4b2a3/32.png) [@DinoDude](https://forum.cardano.org/u/DinoDude)\
**Post date:** [9 March 2022 00:27 UTC](https://forum.cardano.org/t/unable-to-get-transaction-hash-and-index-of-the-utxo/97218/7 "2022-03-09T00:27:09Z")

</div>

Please do not learn or experiment on mainnet 😱

Tutorials, guides, development, or quite literally anything other than launching a previously tested release of a finished project should be done on testnet!

---

<div class="post-metadata">

**Author:** ![pradeeppks](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/pradeeppks/32/52022_2.png) [@pradeeppks](https://forum.cardano.org/u/pradeeppks)\
**Post date:** [9 March 2022 05:33 UTC](https://forum.cardano.org/t/unable-to-get-transaction-hash-and-index-of-the-utxo/97218/8 "2022-03-09T05:33:03Z")

</div>

Hi,

Thanks for clarify but I am using this articles [Create Simple Transaction | Cardano Developer Portal](https://developers.cardano.org/docs/stake-pool-course/handbook/create-simple-transaction) there no one mentioned before creating draft transaction, We need to transfer fund into this address.

Thanks.

---

<div class="post-metadata">

**Author:** ![DinoDude](https://avatars.discourse-cdn.com/v4/letter/d/f4b2a3/32.png) [@DinoDude](https://forum.cardano.org/u/DinoDude)\
**Post date:** [9 March 2022 07:37 UTC](https://forum.cardano.org/t/unable-to-get-transaction-hash-and-index-of-the-utxo/97218/9 "2022-03-09T07:37:02Z")

</div>

No offense to whoever maintains that “developer portal” but I have not found a single thing that actually works as documented there so I deleted it from my bookmarks entirely and have been scouring GitHub as the need arises.

Source code IS source of truth!
