<blockquote>
<p>How can I verify if testnet token was properly registered?</p>
</blockquote>
<p>When you mint your NFT, you're able to check the <code>Mint transactions</code> tab in cardanoscan/testnet.cardanoscan. For example, the following tokens were minted in one transaction:</p>
<ul>
<li><a href="https://testnet.cardanoscan.io/token/62264a920c007b90d6b950f34245d42c66f6fd23c1547f1662bfa54743617264616e6f7263313636" rel="nofollow noreferrer">https://testnet.cardanoscan.io/token/62264a920c007b90d6b950f34245d42c66f6fd23c1547f1662bfa54743617264616e6f7263313636</a></li>
</ul>
<p>Then you can go to the Transaction in the <code>Mint transactions</code> and you will find <code>Metadata</code> tab. There should be your Metadata for <code>721</code>.</p>
<p>If nothing is displayed there, it's because your minting process has something wrong.</p>
<blockquote>
<p>How can I query metadata for a token in certain address?</p>
</blockquote>
<p>You can use <a href="https://blockfrost.io/" rel="nofollow noreferrer">blockfrost</a> to query an specific asset and get the metadata. For example, to query this token: <a href="https://testnet.cardanoscan.io/token/62264a920c007b90d6b950f34245d42c66f6fd23c1547f1662bfa54743617264616e6f726331363239" rel="nofollow noreferrer">https://testnet.cardanoscan.io/token/62264a920c007b90d6b950f34245d42c66f6fd23c1547f1662bfa54743617264616e6f726331363239</a></p>
<p>You can use:</p>
<pre><code>curl --location --request GET 'https://cardano-testnet.blockfrost.io/api/v0/assets/62264a920c007b90d6b950f34245d42c66f6fd23c1547f1662bfa54743617264616e6f726331363239' \
--header 'project_id: &lt;your_project_id&gt;'
</code></pre>
<p>And you will get this:</p>
<pre><code>{
    &quot;asset&quot;: &quot;62264a920c007b90d6b950f34245d42c66f6fd23c1547f1662bfa54743617264616e6f726331363239&quot;,
    &quot;policy_id&quot;: &quot;62264a920c007b90d6b950f34245d42c66f6fd23c1547f1662bfa547&quot;,
    &quot;asset_name&quot;: &quot;43617264616e6f726331363239&quot;,
    &quot;fingerprint&quot;: &quot;asset1gljzhfsaqvep43gjez0t4hj3fj3jwv455cw0e4&quot;,
    &quot;quantity&quot;: &quot;1&quot;,
    &quot;initial_mint_tx_hash&quot;: &quot;9262943a49cc3dca038e907e0e0a9f3ac55ef60a2d3032cab45bfee1ff4d4e37&quot;,
    &quot;mint_or_burn_count&quot;: 1,
    &quot;onchain_metadata&quot;: {
        &quot;name&quot;: &quot;Cardanorc1629&quot;,
        &quot;image&quot;: &quot;ipfs://Qme3iiz4QWXo48xusytQ2u2E7RpnNJdLjGpUStcb6aYWtn&quot;,
        &quot;id&quot;: 1629,
        &quot;properties&quot;: {
            &quot;Eye&quot;: &quot;Agate&quot;,
            &quot;Head&quot;: &quot;No Head Accessory3&quot;,
            &quot;Race&quot;: &quot;Margog&quot;,
            &quot;Mouth&quot;: &quot;No Trait&quot;,
            &quot;Earring&quot;: &quot;No Earring 1&quot;,
            &quot;Background&quot;: &quot;Brown&quot;,
            &quot;Special_Skin&quot;: &quot;None&quot;,
            &quot;Body_Accessory&quot;: &quot;No Armor2&quot;,
            &quot;Special_Mouth_Trait&quot;: &quot;Gold Side Tooth&quot;
        },
        &quot;description&quot;: &quot;Cardanorcs - The Beginning&quot;
    },
    &quot;metadata&quot;: null
}
</code></pre>
<blockquote>
<p>Do I need to base16 encode the token name in metadata.json?</p>
</blockquote>
<p>No, you don't need it.</p>
<hr />
<p>Some additional points to consider:</p>
<ul>
<li>Make sure you're using the right policyId in your metadata and your minting process</li>
<li>You can verify your metadata from here: <a href="https://pool.pm/test/metadata" rel="nofollow noreferrer">https://pool.pm/test/metadata</a></li>
</ul>

CC BY-SA 4.0
2021-12-12T18:26:30.113Z
what do I replace your_project_id with? that curl returns `{"status_code":403,"error":"Forbidden"`
Petr
CC BY-SA 4.0
2021-12-12T18:30:45.750Z
ok seems account on blockfrost was needed, there is a free plan, now I can see that the NFT was probably registered properly, although using cardanoscan it's barely visible as it doesn't render IPFS image
Petr
CC BY-SA 4.0
2021-12-12T20:59:08.187Z
Yes, you need a blockfrost account. Sure, cardanoscan only works to check the metadata , not to render IPFS. Anyway, you can use the blockfrost gateway to check that.
georgeos
CC BY-SA 4.0
2021-12-12T18:05:28.453Z
2021-12-12T18:05:28.453Z
georgeos
<p>The guide for NFT minting is quite outdate and not working at this moment - <a href="https://developers.cardano.org/docs/native-tokens/minting-nfts/" rel="nofollow noreferrer">https://developers.cardano.org/docs/native-tokens/minting-nfts/</a> because since recent version of cardano-cli all token names must be base16 encoded (I wasn't able to use non-encoded names at least).</p>
<p>So I was following this guide completely and managed to register the NFT on testnet when I base16 encoded the token name in CLI, but I don't seem to be able to verify if it was actually correctly registered. Most of NFT browsers don't work with testnet and when using testnet cardanoscan I only see the name of token, but nothing else - no metadata, no IPFS picture, not even description, just the decrypted base16 name, which makes me feel like the metadata either didn't register, or they mismatch the token name?</p>
<p>How can I verify if testnet token was properly registered? How can I query metadata for a token in certain address? Do I need to base16 encode the token name in metadata.json?</p>

CC BY-SA 4.0
2021-12-13T14:20:19.687Z
Please note that the guide was updated with this pull request: https://github.com/cardano-foundation/developer-portal/pull/428/files
adatainment
CC BY-SA 4.0
2021-12-14T12:00:26.883Z
it would be useful if manual also contained the actual command `echo -n $NAME | base16` explaining how you can get the encoded name
Petr
CC BY-SA 4.0
2021-12-15T15:34:42.950Z
I agree, can you do a pull request?
adatainment
<nft><testnet>
Does NFT name need to be base16 encoded in metadata.json file? How can I verify it was registered successfuly including the json?
# Does NFT name need to be base16 encoded in metadata.json file? How can I verify it was registered successfuly including the json?

(Asked by: username_0 on 2021-12-12)

The guide for NFT minting is quite outdate and not working at this moment - <https://developers.cardano.org/docs/native-tokens/minting-nfts/> because since recent version of cardano-cli all token names must be base16 encoded (I wasn't able to use non-encoded names at least).

So I was following this guide completely and managed to register the NFT on testnet when I base16 encoded the token name in CLI, but I don't seem to be able to verify if it was actually correctly registered. Most of NFT browsers don't work with testnet and when using testnet cardanoscan I only see the name of token, but nothing else - no metadata, no IPFS picture, not even description, just the decrypted base16 name, which makes me feel like the metadata either didn't register, or they mismatch the token name?

How can I verify if testnet token was properly registered? How can I query metadata for a token in certain address? Do I need to base16 encode the token name in metadata.json?

**Tags:** nft, testnet
> **Comments:**
> **username_1**: Please note that the guide was updated with this pull request: https://github.com/cardano-foundation/developer-portal/pull/428/files  
> **username_0**: it would be useful if manual also contained the actual command `echo -n $NAME | base16` explaining how you can get the encoded name  
> **username_1**: I agree, can you do a pull request?  

---

## 1 answers

### Answer by username_2 on 2021-12-12. Score: 1 | Accepted answer

How can I verify if testnet token was properly registered?

When you mint your NFT, you're able to check the Mint transactions tab in cardanoscan/testnet.cardanoscan. For example, the following tokens were minted in one transaction:

https://testnet.cardanoscan.io/token/62264a920c007b90d6b950f34245d42c66f6fd23c1547f1662bfa54743617264616e6f7263313636

Then you can go to the Transaction in the Mint transactions and you will find Metadata tab. There should be your Metadata for 721.
If nothing is displayed there, it's because your minting process has something wrong.

How can I query metadata for a token in certain address?

You can use blockfrost to query an specific asset and get the metadata. For example, to query this token: https://testnet.cardanoscan.io/token/62264a920c007b90d6b950f34245d42c66f6fd23c1547f1662bfa54743617264616e6f726331363239
You can use:
curl --location --request GET 'https://cardano-testnet.blockfrost.io/api/v0/assets/62264a920c007b90d6b950f34245d42c66f6fd23c1547f1662bfa54743617264616e6f726331363239' \
--header 'project_id: '

And you will get this:
{
    "asset": "62264a920c007b90d6b950f34245d42c66f6fd23c1547f1662bfa54743617264616e6f726331363239",
    "policy_id": "62264a920c007b90d6b950f34245d42c66f6fd23c1547f1662bfa547",
    "asset_name": "43617264616e6f726331363239",
    "fingerprint": "asset1gljzhfsaqvep43gjez0t4hj3fj3jwv455cw0e4",
    "quantity": "1",
    "initial_mint_tx_hash": "9262943a49cc3dca038e907e0e0a9f3ac55ef60a2d3032cab45bfee1ff4d4e37",
    "mint_or_burn_count": 1,
    "onchain_metadata": {
        "name": "Cardanorc1629",
        "image": "ipfs://Qme3iiz4QWXo48xusytQ2u2E7RpnNJdLjGpUStcb6aYWtn",
        "id": 1629,
        "properties": {
            "Eye": "Agate",
            "Head": "No Head Accessory3",
            "Race": "Margog",
            "Mouth": "No Trait",
            "Earring": "No Earring 1",
            "Background": "Brown",
            "Special_Skin": "None",
            "Body_Accessory": "No Armor2",
            "Special_Mouth_Trait": "Gold Side Tooth"
        },
        "description": "Cardanorcs - The Beginning"
    },
    "metadata": null
}


Do I need to base16 encode the token name in metadata.json?

No, you don't need it.

Some additional points to consider:

Make sure you're using the right policyId in your metadata and your minting process
You can verify your metadata from here: https://pool.pm/test/metadata

> **Comments:**
> **username_0**: what do I replace your_project_id with? that curl returns `{"status_code":403,"error":"Forbidden"`  
> **username_0**: ok seems account on blockfrost was needed, there is a free plan, now I can see that the NFT was probably registered properly, although using cardanoscan it's barely visible as it doesn't render IPFS image  
> **username_2**: Yes, you need a blockfrost account. Sure, cardanoscan only works to check the metadata , not to render IPFS. Anyway, you can use the blockfrost gateway to check that.  

---

