Integration Arweave with Cardano
This might be the first time Arweave has been used as a data availability layer for Cardano.
Created on 1st March 2025
•
Integration Arweave with Cardano
This might be the first time Arweave has been used as a data availability layer for Cardano.
The problem Integration Arweave with Cardano solves
This hackathon submission addresses the challenge of enhancing Cardano Stake Pool metadata hosting by integrating it with Arweave’s decentralized storage. Typically, Cardano Stake Pool Operators (SPOs) host metadata on centralized servers or platforms like GitHub, risking downtime or data tampering. By leveraging Arweave, the solution ensures permanent, tamper-proof storage, aligning with blockchain’s ethos of decentralization and reliability. The metadata, a JSON file detailing pool info (e.g., name, ticker), is uploaded via ArDrive CLI, and its URL is registered on Cardano using CNTools. A redirect link overcomes Cardano’s 64-character URL limit, as ARIO for an ARNS domain wasn’t acquired. This proves Cardano can seamlessly integrate with Arweave, enhancing metadata accessibility and integrity for delegators. Future enhancements include an ARNS-hosted SPO site and a Midnight-ZKP DApp, merging privacy and storage innovation.
User Interaction and Data Flow
To interact with this project, a user starts by visiting the Cardano Stake Pool’s metadata redirect link (https://tinyurl.com/4h2au8xh), which resolves to the Arweave-hosted JSON file (https://arweave.net/bK0_XPXgjL7Oz-GYF6ScdrZk1Zs_Nibj2bVekP-hlBA). This file details the "tardigrades" pool (name, ticker: TARD, etc.). To verify, they can check the pool’s on-chain registration on a Cardano explorer (https://preview.cardanoscan.io/pool/8adc3a4eb28ae588f78dd5c3417503db387cb6e53f348bef1bafb676), ensuring the metadata URL and hash match. Using cardano-cli, they can query pool parameters (--stake-pool-id 8adc3a4eb28ae588f78dd5c3417503db387cb6e53f348bef1bafb676 --testnet-magic 2). Delegators stake ADA via a Cardano wallet by selecting the pool (ID: pool13twr5n4j3tjc3aud6hp5zagrmvu8edh98u6ghmcm47m8v37yvym). On Arweave, users can explore the upload via https://viewblock.io/arweave/tx/bK0_XPXgjL7Oz-GYF6ScdrZk1Zs_Nibj2bVekP-hlBA.
The project architecture and development process
he project architecture integrates Cardano and Arweave to host and register Stake Pool Operator (SPO) metadata. On the Cardano side, the SPO ("tardigrades") operates a node on the preview testnet, registered with a unique pool ID (8adc3a4eb28ae588f78dd5c3417503db387cb6e53f348bef1bafb676). The metadata, a JSON file (name, ticker: TARD, etc.), is crafted within Cardano’s 512-byte limit. This file is uploaded to Arweave using the ArDrive CLI, which interfaces with an Arweave wallet and stores the file permanently on the blockchain, yielding a transaction ID (bK0_XPXgjL7Oz-GYF6ScdrZk1Zs_Nibj2bVekP-hlBA) and URL (https://arweave.net/...). Due to Cardano’s 64-character URL constraint, a TinyURL redirect (https://tinyurl.com/4h2au8xh) is created. Using CNTools, the SPO updates the pool’s on-chain registration, embedding the redirect URL and metadata hash. Cardano explorers and cardano-cli enable verification, linking the decentralized storage (Arweave) with Cardano’s blockchain registry.
Product Integrations
This project integrates Cardano, Arweave, and supporting tools to enhance Stake Pool Operator (SPO) metadata hosting. Cardano provides the blockchain infrastructure, where the SPO ("tardigrades") is registered on the preview testnet, and metadata is linked on-chain via CNTools, a widely-used SPO management tool. Arweave serves as the decentralized storage layer, hosting the metadata JSON file permanently using the ArDrive CLI, which uploads data to the Arweave blockchain.
Trade-offs and shortcuts while building
This project blends Cardano and Arweave to host Stake Pool metadata with brilliance. Upsides: Arweave’s permanent storage outshines centralized options, ensuring tamper-proof, always-on access—judges, imagine the reliability! ArDrive CLI’s slick upload process is a dream, showcasing Arweave’s UX. Downsides: AR token costs and ARIO’s absence led to a TinyURL hack—functional, but less pure. Cardano’s 64-character URL cap forced this compromise, and updates mean re-uploading, a small chore for Arweave’s permanence.
Tracks Applied (2)
Unlocking the Power of Permanent Domains: Build with ArNS (Arweave Name System)
Arweave