<p>This depends a bit on your use case.</p>
<p>If you just want to look it up on the blockchain: You can query the node with <code>cardano-cli query utxo --mainnet --address &lt;address-to-check&gt;</code>. This gives you all UTXOs at the address and the value and NFTs contained in it.</p>
<p>If you want a smart contract to validate that the user has the NFT: The UTXO with the NFT would need to be part of the transaction and then sent back to the owner. Then some validator can check the context of the transaction if the NFT is included.</p>

CC BY-SA 4.0
2021-10-24T07:12:53.427Z
2021-10-24T07:38:33.763Z
2021-10-24T07:38:33.763Z
Flippy
<p>The blockchain stores the proof that a particular NFT belongs to a wallet. Whoever controls the wallet own the NFT. Wallet control is determined by access to its private key(signing key). If someone presents a text or number signed by wallet private key then he proves that he controls that wallet.
This is how websites are being connected to wallets.</p>

CC BY-SA 4.0
2021-10-24T17:30:02.800Z
Thank you! This makes sense to me.
Blake Brown
CC BY-SA 4.0
2021-10-24T04:07:28.423Z
2021-10-24T04:07:28.423Z
raghu
<p>Let's say I have the asset string representing an NFT. How can I verify that a user signed in with Nami wallet owns that NFT? Is there some sort of signature they can provide?</p>

<nft><nami-wallet>
How to verify a user owns an NFT?
# How to verify a user owns an NFT?

(Asked by: username_0 on 2021-10-24)

Let's say I have the asset string representing an NFT. How can I verify that a user signed in with Nami wallet owns that NFT? Is there some sort of signature they can provide?

**Tags:** nft, nami-wallet

---

## 2 answers

### Answer by username_1 on 2021-10-24. Score: 3 | Accepted answer

This depends a bit on your use case.

If you just want to look it up on the blockchain: You can query the node with `cardano-cli query utxo --mainnet --address` . This gives you all UTXOs at the address and the value and NFTs contained in it.

If you want a smart contract to validate that the user has the NFT: The UTXO with the NFT would need to be part of the transaction and then sent back to the owner. Then some validator can check the context of the transaction if the NFT is included.


---

### Answer by username_2 on 2021-10-24. Score: 2

The blockchain stores the proof that a particular NFT belongs to a wallet. Whoever controls the wallet own the NFT. Wallet control is determined by access to its private key(signing key). If someone presents a text or number signed by wallet private key then he proves that he controls that wallet.
This is how websites are being connected to wallets.

> **Comments:**
> **username_0**: Thank you! This makes sense to me.  

---

