<p>You can do it via cli omitting --whole-utxo</p>
<pre><code>cardano-cli query utxo --address $(cat /path/to/addr) --testnet-magic 1097911063
</code></pre>

CC BY-SA 4.0
2022-05-02T11:50:09.580Z
Hi, thanks for your replies & sorry for late comments. I already done that way, but as far as I notice, it only give `last utxo` not `whole / all utxo` that occurred on that given address
wandyyd
CC BY-SA 4.0
2022-05-06T06:05:40.463Z
Oh i see. I think cardano node or cli doesn't have this feature as far as I know we have to use dbsync or blockfrost for the same.
nabin
CC BY-SA 4.0
2022-05-06T08:46:43.023Z
Ahh I see! seems yes, I've been search around and didn't found it. Thanks anyway for your replies & references! :)
wandyyd
CC BY-SA 4.0
2022-04-29T08:47:14.940Z
2022-04-29T08:47:14.940Z
nabin
<p>As the title, I've been wondering if <code>cardano-cli</code> has an ability to get all utxo based on given address.</p>
<p>I already tried</p>
<pre><code>cardano-cli query utxo --address $(cat /path/to/addr) --testnet-magic 1097911063 --whole-utxo
</code></pre>
<p>But, it will return an error message</p>
<pre><code>Invalid option '--whole-utxo'
</code></pre>
<p>I'm kinda confuse as on <code>help</code> it says, that <code>--whole-utxo</code> is available, but I do notice, that, it's like an option we choose between <code>--whole-utxo</code> or <code>--address</code> or <code>--tx-in</code>.</p>
<hr>
I tried to dig some documents / forum and even on official github, but I found no clue to do so.
<p>Mostly it pointed to install <code>db-sync</code> etc, but, tbh, I'm not a fan to install or use other additional components outside cardano-cli (<code>db-sync</code>, <code>blockfrost</code>, etc).</p>
<p>I prefer to use the <code>core</code> itself rather than rely on <code>outside of core</code>.</p>
<p>Been wonder if I missed something.</p>
<p>Thanks &amp; Cheers.</p>

CC BY-SA 4.0
2022-04-29T11:04:48.583Z
for the case you want to give an address instead of path of file of your wallet, and also you want to have output of a wallet in mainnet, please find below. cardano-cli query utxo --address addr1q898ttf4nk6u6qfdlgfkh4985740sdfghsgtlykxhjsd9y48u03pzezspr2drk --mainnet please replace the address with the one you want to see all the current UTXOs
TTS17
CC BY-SA 4.0
2022-05-02T11:52:00.003Z
Hi, thanks for your replies & sorry for late comments. I already try that way and as far as I notice, it only return with `last utxo` not `whole / all utxo` that occurred on that given address.
wandyyd
<cardano-cli><cardano-node>
Cardano - cardano-cli query utxo - get all utxo of an address
# Cardano - cardano-cli query utxo - get all utxo of an address

(Asked by: username_0 on 2022-04-29)

As the title, I've been wondering if cardano-cli has an ability to get all utxo based on given address.
I already tried
cardano-cli query utxo --address $(cat /path/to/addr) --testnet-magic 1097911063 --whole-utxo

But, it will return an error message
Invalid option '--whole-utxo'

I'm kinda confuse as on help it says, that --whole-utxo is available, but I do notice, that, it's like an option we choose between --whole-utxo or --address or --tx-in.

I tried to dig some documents / forum and even on official github, but I found no clue to do so.
Mostly it pointed to install db-sync etc, but, tbh, I'm not a fan to install or use other additional components outside cardano-cli (db-sync, blockfrost, etc).
I prefer to use the core itself rather than rely on outside of core.
Been wonder if I missed something.
Thanks & Cheers.

**Tags:** cardano-cli, cardano-node
> **Comments:**
> **username_1**: for the case you want to give an address instead of path of file of your wallet, and also you want to have output of a wallet in mainnet, please find below. cardano-cli query utxo --address addr1q898ttf4nk6u6qfdlgfkh4985740sdfghsgtlykxhjsd9y48u03pzezspr2drk --mainnet please replace the address with the one you want to see all the current UTXOs  
> **username_0**: Hi, thanks for your replies & sorry for late comments. I already try that way and as far as I notice, it only return with `last utxo` not `whole / all utxo` that occurred on that given address.  

---

## 1 answers

### Answer by username_2 on 2022-04-29. Score: 4

You can do it via cli omitting --whole-utxo
cardano-cli query utxo --address $(cat /path/to/addr) --testnet-magic 1097911063

> **Comments:**
> **username_0**: Hi, thanks for your replies & sorry for late comments. I already done that way, but as far as I notice, it only give `last utxo` not `whole / all utxo` that occurred on that given address  
> **username_2**: Oh i see. I think cardano node or cli doesn't have this feature as far as I know we have to use dbsync or blockfrost for the same.  
> **username_0**: Ahh I see! seems yes, I've been search around and didn't found it. Thanks anyway for your replies & references! :)  

---

