Download File from 0G Storage
Enables downloading and verifying files from 0G decentralized storage with Merkle proof validation for data integrity.
Install this skill
Security score
The Download File from 0G Storage skill was audited on Feb 25, 2026 and we found 14 security issues across 2 threat categories. Review the findings below before installing.
Categories Tested
Security Issues
Template literal with variable interpolation in command context
| 59 | throw new Error(`Download failed: ${error.message}`); |
Template literal with variable interpolation in command context
| 61 | console.log(`Downloaded to ${outputPath}`); |
Template literal with variable interpolation in command context
| 98 | console.log(`Downloaded and verified: ${outputPath}`); |
Template literal with variable interpolation in command context
| 101 | console.log(`File size: ${stats.size} bytes`); |
Template literal with variable interpolation in command context
| 104 | throw new Error(`File not found for root hash: ${rootHash}`); |
Template literal with variable interpolation in command context
| 128 | console.log(`Downloaded: ${files[i].outputPath}`); |
Template literal with variable interpolation in command context
| 130 | console.error(`Failed: ${files[i].rootHash} — ${result.reason}`); |
Access to .env file
| 19 | - `.env` with `STORAGE_INDEXER` |
Access to .env file
| 51 | const indexer = new Indexer(process.env.STORAGE_INDEXER!); |
Access to .env file
| 77 | if (!process.env.STORAGE_INDEXER) { |
Access to .env file
| 78 | throw new Error('STORAGE_INDEXER not set in .env'); |
Access to .env file
| 92 | const indexer = new Indexer(process.env.STORAGE_INDEXER!); |
Access to .env file
| 117 | const indexer = new Indexer(process.env.STORAGE_INDEXER!); |
Access to .env file
| 166 | | `indexer not available` | Wrong indexer URL | Check `STORAGE_INDEXER` in `.env` | |
Install this skill with one command
/learn @0gfoundation/download-file