storage-plus-chain

Link off-chain data in 0G Storage to on-chain references via registry contracts.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Combine 0G Storage with 0G Chain smart contracts to create on-chain references to off-chain data. This enables NFT metadata storage, content registries, and verifiable document systems without storing large payloads on-chain.

Core Features & Use Cases

  • On-chain references to off-chain data via root hashes
  • NFT metadata storage patterns and content registries
  • Verifiable document systems with auditable links between chain and storage

Quick Start

Upload data to 0G Storage, deploy or interact with a registry contract on 0G Chain, and store the root hash on-chain to create a verifiable link to off-chain data.

Frequently Asked Questions about storage-plus-chain

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

FAQPage Schema
How do I link off-chain NFT metadata to on-chain references using a registry pattern?

To link off-chain NFT metadata to on-chain references, you upload the data to 0G Storage, deploy a registry contract on 0G Chain, and store the root hash on-chain to create a verifiable connection to the off-chain payload.

What is the best way to store large verifiable documents on a blockchain without high gas costs?

The best way to store verifiable documents without high gas costs is keeping the payload in 0G Storage while storing its root hash on-chain using a registry contract, ensuring the data remains auditable and verifiable across both layers.

Do I need Node.js and the 0G SDK to create on-chain references for off-chain data?

Yes, you need a Node.js environment and the 0G SDK installed to upload data to 0G Storage and interact with the 0G Chain registry contract to successfully store the root hashes on-chain.

How does a content registry handle the connection between off-chain storage and on-chain root hashes?

A content registry handles the connection by mapping a distinct registry contract on 0G Chain to the off-chain data location, storing the root hash as an on-chain reference to guarantee the integrity and auditability of the 0G Storage payload.

Can I use this registry pattern for deployment pipelines that require auditable off-chain storage?

Yes, this registry pattern is specifically applicable to deployment pipelines requiring auditable off-chain storage, allowing systems like NFT metadata and verifiable documents to maintain secure links between 0G Storage and 0G Chain.