Build DApps on Midnight Network with the 1AM Wallet browser extension.
Overview
The 1AM Wallet provides a DApp Connector API at window.midnight['1AM'] for:
Wallet connection and address discovery
ZK proof generation via 1AM ProofStation (no local server needed)
Dust sponsorship (users don't pay gas fees)
Transaction balancing, signing, and submission
Multi-network support (Preview, Preprod, Mainnet)
Key Principle
Route everything through the wallet. Never call the proof server directly from your DApp — you'll get CORS errors and 401s. The wallet handles proving, balancing, and submission internally.
network-config.md — Network URLs and configuration
1---2name: 1am-wallet-integration3description: 1AM Wallet Integration4---5# 1AM Wallet Integration67Build DApps on Midnight Network with the 1AM Wallet browser extension.89## Overview1011The 1AM Wallet provides a DApp Connector API at `window.midnight['1AM']` for:12- Wallet connection and address discovery13- ZK proof generation via 1AM ProofStation (no local server needed)14- Dust sponsorship (users don't pay gas fees)15- Transaction balancing, signing, and submission16- Multi-network support (Preview, Preprod, Mainnet)1718## Key Principle1920**Route everything through the wallet.** Never call the proof server directly from your DApp — you'll get CORS errors and 401s. The wallet handles proving, balancing, and submission internally.2122## Quick Start2324```bash25npm install @midnight-ntwrk/midnight-js-contracts @midnight-ntwrk/midnight-js-types @midnight-ntwrk/compact-runtime @midnight-ntwrk/ledger-v826```2728Install the [1AM Wallet](https://chromewebstore.google.com/detail/1am/bphnkdkcnfhompoegfpgnkidcjfbojjp) from the Chrome Web Store. For beta builds, see [1am.xyz/install-beta](https://1am.xyz/install-beta).2930## Rules3132- `wallet-connection.md` — Detect, connect, and manage wallet state33- `provider-setup.md` — Bridge ConnectedAPI to MidnightProviders34- `transaction-flow.md` — Submit transactions through the wallet35- `proof-server.md` — 1AM ProofStation integration36- `common-mistakes.md` — Avoid CORS, v3 deprecation, WASM issues37- `network-config.md` — Network URLs and configuration
Run npx skillmds@latest add uvroxx/1am-wallet-integration in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
1AM Wallet Integration It is listed under Integrations & APIs on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Capability flags: makes network calls. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
UvRoxx (@uvroxx) published this skill. Their other Agent Skills are listed on their SkillMD profile.