<p>Let's take this asset as an example: <a href="https://pool.pm/0e14267a8020229adc0184dd25fa3174c3f7d6caadcb4425c70e7c04.unsig26071" rel="nofollow noreferrer">https://pool.pm/0e14267a8020229adc0184dd25fa3174c3f7d6caadcb4425c70e7c04.unsig26071</a></p>
<ul>
<li>Policy ID: <code>0e14267a8020229adc0184dd25fa3174c3f7d6caadcb4425c70e7c04</code></li>
<li>Asset name: <code>unsig26071</code></li>
</ul>
<p>To request this asset from the blockfrost.io API, you have to convert the name to HEX and then concatenate them (without a <code>.</code> in between).</p>
<p>How you do this depends on the programming language you use. You need to find a way to convert a string to its HEX representation.</p>
<p>Here's an example in C#:</p>
<pre><code>using System;
using System.Text;

string assetName = &quot;unsig26071&quot;;
byte[] bytes = Encoding.UTF8.GetBytes(assetName);
string hexAssetName = Convert.ToHexString(bytes); // 756e7369673236303731
</code></pre>
<p>To verify that you convert the names correctly, you can use a page like this one: <a href="http://string-functions.com/string-hex.aspx" rel="nofollow noreferrer">http://string-functions.com/string-hex.aspx</a></p>
<p>Here's the converted example on cardanoscan:
<a href="https://cardanoscan.io/token/0e14267a8020229adc0184dd25fa3174c3f7d6caadcb4425c70e7c04.756e7369673236303731" rel="nofollow noreferrer">https://cardanoscan.io/token/0e14267a8020229adc0184dd25fa3174c3f7d6caadcb4425c70e7c04.756e7369673236303731</a></p>
<p>Your blockfrost.io request would look like this:</p>
<p><a href="https://cardano-mainnet.blockfrost.io/api/v0/assets/0e14267a8020229adc0184dd25fa3174c3f7d6caadcb4425c70e7c04756e7369673236303731" rel="nofollow noreferrer">https://cardano-mainnet.blockfrost.io/api/v0/assets/0e14267a8020229adc0184dd25fa3174c3f7d6caadcb4425c70e7c04756e7369673236303731</a></p>

CC BY-SA 4.0
2021-06-22T13:44:20.320Z
thanks this is the accepted
cheff wallets
CC BY-SA 4.0
2021-06-22T05:26:25.507Z
2021-06-22T07:42:26.623Z
2021-06-22T07:42:26.623Z
eddex
<p>We are developing an app that must get the asset id and get its details from metadata, right now we are using blockfrost.io. It works very good for policy Id's, we can use the pool.pm website and get the information regarding all the assets the policy has.</p>
<p>Unfortunately, it doesn't work very well for the asset id... The blockfrost only accepts the concatenation of policy id and the hex encoded asset name. I can't determine the hex encoded asset name. If any of you know how to do that let me know.
Thanks in advance.</p>
<p>this is the endpoint:
<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>
<p>some valid id's I found using postman:
0e14267a8020229adc0184dd25fa3174c3f7d6caadcb4425c70e7c04756e7369673236383531</p>

CC BY-SA 4.0
2021-06-22T10:40:14.057Z
Meta comment. Why would you use a centralized, single point of failure component in a service whose main goal is to create decentralized ecosystem? So, instead of calling blockchain wrapped with web api you should be querying the blockchain yourself. Web api for blockchain does not make much sense.
matcheek
CC BY-SA 4.0
2021-06-23T11:48:31.590Z
@matcheek makes a lot of sense, I don't have the resources to build an API like this for my project, I can focus on whatever my project needs and use their api. this is industry standard development. The JSON web api is used in several types of frameworks and libraries, do I need to create everything from scratch just for purism and never delivers my app? That doesnt make sense, if the point of failure happens we can fix the app but never develop anything with premature optimizations its amateurism approach.
cheff wallets
<native-assets><api>
Blockfrost assets api issues
# Blockfrost assets api issues

(Asked by: username_0 on 2021-06-21)

We are developing an app that must get the asset id and get its details from metadata, right now we are using blockfrost.io. It works very good for policy Id's, we can use the pool.pm website and get the information regarding all the assets the policy has.

Unfortunately, it doesn't work very well for the asset id... The blockfrost only accepts the concatenation of policy id and the hex encoded asset name. I can't determine the hex encoded asset name. If any of you know how to do that let me know.
Thanks in advance.

this is the endpoint:
[https://cardano-mainnet.blockfrost.io/api/v0/assets/{asset}](https://cardano-mainnet.blockfrost.io/api/v0/assets/%7Basset%7D)

some valid id's I found using postman:
0e14267a8020229adc0184dd25fa3174c3f7d6caadcb4425c70e7c04756e7369673236383531

**Tags:** native-assets, api
> **Comments:**
> **username_1**: Meta comment. Why would you use a centralized, single point of failure component in a service whose main goal is to create decentralized ecosystem? So, instead of calling blockchain wrapped with web api you should be querying the blockchain yourself. Web api for blockchain does not make much sense.  
> **username_0**: @matcheek makes a lot of sense, I don't have the resources to build an API like this for my project, I can focus on whatever my project needs and use their api. this is industry standard development. The JSON web api is used in several types of frameworks and libraries, do I need to create everything from scratch just for purism and never delivers my app? That doesnt make sense, if the point of failure happens we can fix the app but never develop anything with premature optimizations its amateurism approach.  

---

## 1 answers

### Answer by username_2 on 2021-06-22. Score: 3 | Accepted answer

Let's take this asset as an example: https://pool.pm/0e14267a8020229adc0184dd25fa3174c3f7d6caadcb4425c70e7c04.unsig26071

Policy ID: 0e14267a8020229adc0184dd25fa3174c3f7d6caadcb4425c70e7c04
Asset name: unsig26071

To request this asset from the blockfrost.io API, you have to convert the name to HEX and then concatenate them (without a . in between).
How you do this depends on the programming language you use. You need to find a way to convert a string to its HEX representation.
Here's an example in C#:
using System;
using System.Text;

string assetName = "unsig26071";
byte[] bytes = Encoding.UTF8.GetBytes(assetName);
string hexAssetName = Convert.ToHexString(bytes); // 756e7369673236303731

To verify that you convert the names correctly, you can use a page like this one: http://string-functions.com/string-hex.aspx
Here's the converted example on cardanoscan:
https://cardanoscan.io/token/0e14267a8020229adc0184dd25fa3174c3f7d6caadcb4425c70e7c04.756e7369673236303731
Your blockfrost.io request would look like this:
https://cardano-mainnet.blockfrost.io/api/v0/assets/0e14267a8020229adc0184dd25fa3174c3f7d6caadcb4425c70e7c04756e7369673236303731

> **Comments:**
> **username_0**: thanks this is the accepted  

---

