<p>in script i would do the follow :</p>
<ol>
<li>cardano-cli query utxo --address $address --mainnet &gt; fullUtxo.out</li>
<li>tail -n +3 fullUtxo.out | sort -k3 -nr  &gt; balance.out
while read -r utxo; do</li>
<li>tokenAmount=$(awk '{ print $6}' &lt;&lt;&lt; &quot;${utxo}&quot;)</li>
</ol>
<p>if you can take this info from step 3.
you can use it how you prefer.
for example
if tokenAmount = TxOutDatumNone , means you have no Token
if tokenAmount = X (number),you have X tokens from the token in the { print $7}</p>
<p>if you need any further assist, let me know</p>

CC BY-SA 4.0
2022-01-26T06:47:00.097Z
2022-01-26T06:47:00.097Z
TTS17
<p>but i realized you speak for NFT.
then i would do it by blockfrost:</p>
<p>curl -H 'project_id: mainnetb2ZFKeNsfggfDFGHJsdgw4nEhuWhExyfV' <br />
<a href="https://cardano-mainnet.blockfrost.io/api/v0/assets/%7Basset%7D" rel="nofollow noreferrer">https://cardano-mainnet.blockfrost.io/api/v0/assets/{asset}</a></p>
<pre><code>            [![enter image description here][1]]
</code></pre>

CC BY-SA 4.0
2022-01-26T07:07:42.417Z
2022-01-26T23:24:11.400Z
2022-01-26T23:24:11.400Z
TTS17
<p>One can check with online tools (described <a href="https://cardano.stackexchange.com/questions/796/verify-that-token-is-nft/797?noredirect=1#comment1054_797">here</a>) if a token is an NFT.</p>
<p>How the same thing can be done using CLI tools (in some sort of a script)?</p>

<cardano-cli><nft><blockchain>
How to check using CLI that a token is a NFT?
# How to check using CLI that a token is a NFT?

(Asked by: username_0 on 2021-08-16)

One can check with online tools (described [here](https://cardano.stackexchange.com/questions/796/verify-that-token-is-nft/797?noredirect=1#comment1054_797)) if a token is an NFT.

How the same thing can be done using CLI tools (in some sort of a script)?

**Tags:** cardano-cli, nft, blockchain

---

## 2 answers

### Answer by username_1 on 2022-01-26. Score: 1

in script i would do the follow :

1. cardano-cli query utxo --address $address --mainnet > fullUtxo.out
2. tail -n +3 fullUtxo.out | sort -k3 -nr > balance.out
   while read -r utxo; do
3. tokenAmount=$(awk '{ print $6}' <<< "${utxo}")

if you can take this info from step 3.
you can use it how you prefer.
for example
if tokenAmount = TxOutDatumNone , means you have no Token
if tokenAmount = X (number),you have X tokens from the token in the { print $7}

if you need any further assist, let me know


---

### Answer by username_1 on 2022-01-26. Score: 1

but i realized you speak for NFT.
then i would do it by blockfrost:
curl -H 'project_id: mainnetb2ZFKeNsfggfDFGHJsdgw4nEhuWhExyfV' 
https://cardano-mainnet.blockfrost.io/api/v0/assets/{asset}
            [![enter image description here][1]]


---

