You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the growing adoption of Hashinals and HCS-1 files on the Hedera network, there is a need to provide native support for viewing these files directly within Hashscan. This enhancement would improve user experience by allowing users to view Hashinal content without leaving the explorer interface, similar to how NFTs utilizing IPFS or Arweave are rendered.
User stories
As a user:
I want to view Hashinal inscriptions directly within Hashscan when viewing NFT details
I want to see the rendered content of text-based inscriptions (JSON, HTML, SVG, etc.)
I want to view image-based inscriptions in their proper format
I want the viewing experience to be fast and reliable
Solution
Hashinal Metadata Format
Hashinals use the Hedera Consensus Service (HCS) to store their metadata. The metadata is referenced in the NFT's metadata field using the HRL format (Hedera Resource Locator):
hcs://<version>/<topicId>
where:
version: The version of the standard referenced in the location e.g. 1 for HCS-1
topicId: The Hedera topic ID where the inscription metadata is stored (e.g., 0.0.3994496)
Integration with HCS-1 CDN
The Mirror Node Explorer will integrate with a HCS-1 CDN to fetch and render Hashinal content. The implementation will follow these key points:
To make it easy to understand, I've provided an example implementation using JavaScript that leverages the CDN and the HRL format on an NFT's metadata field.
Problem
With the growing adoption of Hashinals and HCS-1 files on the Hedera network, there is a need to provide native support for viewing these files directly within Hashscan. This enhancement would improve user experience by allowing users to view Hashinal content without leaving the explorer interface, similar to how NFTs utilizing IPFS or Arweave are rendered.
User stories
As a user:
Solution
Hashinal Metadata Format
Hashinals use the Hedera Consensus Service (HCS) to store their metadata. The metadata is referenced in the NFT's metadata field using the HRL format (Hedera Resource Locator):
where:
version
: The version of the standard referenced in the location e.g. 1 for HCS-1topicId
: The Hedera topic ID where the inscription metadata is stored (e.g., 0.0.3994496)Integration with HCS-1 CDN
The Mirror Node Explorer will integrate with a HCS-1 CDN to fetch and render Hashinal content. The implementation will follow these key points:
To make it easy to understand, I've provided an example implementation using JavaScript that leverages the CDN and the HRL format on an NFT's metadata field.
This implementation:
React / Vue Examples
React Implementation
Vue Implementation
Usage examples:
React:
Vue:
Alternatives
No response
The text was updated successfully, but these errors were encountered: