Need a crash course on Bitcoin layers?
→ READ OUR FREE GUIDE
Need a crash course on Bitcoin layers?
→ READ OUR FREE GUIDE
Need a crash course on Bitcoin layers?
→ READ OUR FREE GUIDE
Need a crash course on Bitcoin layers?
→ READ OUR FREE GUIDE
Need a crash course on Bitcoin layers?
→ READ OUR FREE GUIDE

Announcing Hiro’s Token Metadata API

We know developers want a fast and easy way to display token data in their applications, so we made specialized API endpoints that index all token metadata for fungible, non-fungible and semi-fungible tokens. Meet Hiro’s first dedicated API microservice.

Type
Product update
Topic(s)
Product
Published
March 9, 2023
Author(s)
Staff Engineer
Meet our new Token Metadata API
Contents

Token metadata is one of the most important tools that developers can use to provide a rich and engaging experience for end users. From wallets to NFT marketplaces, many applications need to query metadata for a specific asset (like its image, attributes, rarity, etc). With this in mind, we created a Token Metadata API that indexes metadata for all fungible, non-fungible, and semi-fungible tokens in the Stacks blockchain and exposes it using three JSON REST API endpoints. 

These three endpoints give developers more optionality when using our API services while also providing a more efficient way for us at Hiro to maintain and scale our  back-end infrastructure. 

What This Means For You

Without metadata, wallets can only display the name of a token contract, along with which token IDs are held by that particular address. These new endpoints let you display information like the picture, name and traits associated with a specific NFT. For wallets and NFT marketplaces, these endpoints make it easier to pull rich data into their applications. 

How It Works

The new Token Metadata API will support the following token metadata standards:

First, the API scans the entire Stacks blockchain for all tokens that have ever existed, and it adds all of the corresponding metadata to a local database for quick retrieval. After this processing, all data will be exposed through easy to use REST JSON endpoints for external services to consume. This translates to a faster and more reliable performance for our users. For more details, check out our documentation and Github

Get Started

We are thrilled to roll out the first microservice associated with the Stacks API, and we have more planned in the future to deliver faster response times and better scalability for our services.

Ready to get building? Check out the documentation for the token metadata service here and our GitHub repo here.

Product updates & dev resources straight to your inbox
Your Email is in an invalid format
Checkbox is required.
Thanks for
subscribing.
Oops! Something went wrong while submitting the form.
Copy link
Mailbox
Hiro news & product updates straight to your inbox
Only relevant communications. We promise we won’t spam.

Related stories