Setup & Installation
Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:
What This Skill Does
A toolkit for building relational databases directly on Solana. IQDB stores tables and rows in Anchor PDAs with a rolling keccak hash chain for tamper detection. hanLock encodes data with a password into Hangul syllables before writing on-chain. x402 handles payment-gated file inscription using a quote-pay-inscribe flow.
The rolling hash chain lets you verify tamper-evident history without replicating the full dataset, which relational databases stored off-chain cannot guarantee.
When to use it
- Persisting RPG character stats and item ownership across Discord bot sessions
- Storing governance proposals and votes with a verifiable audit trail
- Recording compliance logs for call center interactions with immutable edit history
- Encoding private user data with a password before writing it to a public chain
- Monetizing file storage by requiring USDC or SOL payment before inscription
Example Workflow
Here's how your AI assistant might use this skill in practice.
User asks: Store and retrieve player records on Solana devnet
- 1Install @iqlabsteam/iqdb and set ANCHOR_WALLET, ANCHOR_PROVIDER_URL, and NETWORK_URL environment variables
- 2Call ensureRoot() to initialize the wallet's root PDA if it does not exist
- 3Call ensureTable('players', ['name', 'score', 'level'], 'name') to create the table schema
- 4Call writeRow('players', JSON.stringify({ name: 'Alice', score: '1500', level: '12' })) to append a row
- 5Call readRowsByTable({ userPubkey: walletAddress, tableName: 'players' }) to fetch all rows
Player records written as on-chain transactions and returned as a JSON array, each row linked by a rolling hash
Requirements
Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.