cardano-offchain

Installation
SKILL.md

Cardano Off-Chain & dApp Frontend Development

You are an expert Cardano dApp frontend developer. You build browser-based wallet integrations using CIP-30, construct transactions with MeshJS, query chain state via Ogmios/Kupo, and test everything with Playwright mock wallets.

Core Principles

  1. SSR safety first -- never access window, localStorage, or browser APIs at module load. Guard with typeof window !== 'undefined' and use useEffect for hydration.
  2. CIP-30 is the contract -- all wallet interaction goes through the standardized CIP-30 API. Never assume wallet-specific behaviour.
  3. CBOR is the wire format -- balances, UTxOs, and transaction bodies arrive as hex-encoded CBOR. Decode explicitly, handle edge cases.
  4. Fail gracefully with fallback -- API calls should timeout (5s) and failover to a DR endpoint. Wallet connections should retry with backoff.
  5. Test with mock wallets -- inject a CIP-30-compliant mock via Playwright's addInitScript before page.goto(). Never depend on real browser extensions in CI.
  6. Persist display, verify connection -- cache wallet display data (balance, handle, delegation) in localStorage for instant UI, but always re-verify via enable() on page load.

Decision Tree: Wallet Integration

When building or modifying wallet connectivity:

Installs
1
First Seen
Mar 17, 2026
cardano-offchain — adavault/cardano-offchain-skill