download-file

Download and verify files from 0G decentralized storage using a root hash.

Updated Apr 26, 2026
One-click install
npx skills add https://github.com/gabrielfior/ai-village-open-agents --skill download-file-gabrielfior
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: download-file
Source: https://github.com/gabrielfior/ai-village-open-agents/tree/main/.opencode/skills/download-file
Command: npx skills add https://github.com/gabrielfior/ai-village-open-agents --skill download-file-gabrielfior

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @0glabs/0g-ts-sdk, dotenv.

What problem does it solve?

This Skill automates secure retrieval of files from 0G decentralized storage and validates data integrity using Merkle proofs to prevent tampering.

Core Features & Use Cases

  • Verified downloads with Merkle proof validation to ensure data integrity.
  • Batch downloads and error handling for missing or corrupted files.
  • Works with a root hash to fetch and verify content for archival or deployment tasks.

Quick Start

Provide a root hash and an output path to download and verify a file from 0G storage.

Frequently Asked Questions about download-file

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I download files from 0G decentralized storage and verify their integrity?

To download and verify 0G storage files, you provide a root hash and an output path. The Skill uses a Node.js Indexer client to fetch the content and validates data integrity using Merkle proofs to prevent tampering.

What is a root hash used for when fetching content from 0G storage?

A root hash is used to fetch and verify content from 0G storage by validating data against Merkle proofs. This ensures the downloaded file has not been tampered with and matches the original uploaded data.

Can I perform batch downloads of multiple files from 0G storage using Node.js?

Yes, batch downloads from 0G storage are supported. The Skill handles multiple file retrieval with robust error handling for missing or corrupted files, ensuring validated data integrity across the entire batch operation.

Does the 0G storage download process work with TypeScript and Node.js?

Yes, the 0G storage download process works with TypeScript and Node.js. It uses the @0glabs/0g-ts-sdk and dotenv dependencies, operating through a Node.js Indexer client with environment configuration for secure file retrieval.

Why does file verification fail when downloading from 0G decentralized storage?

File verification fails when the downloaded data does not match the provided root hash. The Skill enforces Merkle proof validation to detect tampering or corruption, and includes robust error handling for missing or corrupted files.