-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add HCS-1 support inside of Hashscan #1523
Comments
Hey @svienot feel free to reach out if you have any questions :) |
Hey @kantorcodes This is for now focusing specifically on HCS-1 content, and the preview is available for the following types: |
Yes I saw that. The implementation looks great! The KiloScribe CDN could be useful in making NFT Metadata load quickly (similar to IPFS / Arweave gateways), as well as add support for larger files that require loading thousands of HCS messages Some examples of HTML Hashinals: https://kiloscribe.com/api/inscription-cdn/0.0.6885491?network=mainnet There are also a number of other examples here: |
We are pushing this first stage of support live in a matter of minutes. |
This looks incredible! I am noticing that larger images are not loading though: |
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:
<!-- Using the Vue component --> <template> <HCS1Renderer metadata="hcs://1/0.0.3994496" network="mainnet" /> </template> <script> import HCS1Renderer from './components/HCS1Renderer.vue'; export default { components: { HCS1Renderer } }; </script>
Alternatives
No response
The text was updated successfully, but these errors were encountered: