# 1am Wallet Integration

> 1AM Wallet Integration

- Skill: `uvroxx/1am-wallet-integration` (Agent Skill, multi-file: 7 files)
- Install (CLI): `npx skillmds@latest add uvroxx/1am-wallet-integration`
- Raw SKILL.md: https://api.skillmd.com/api/skills/uvroxx/1am-wallet-integration/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: UvRoxx (https://skillmd.com/u/uvroxx)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/uvroxx/1am-wallet-integration

---

# 1AM Wallet Integration

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.

## Quick Start

```bash
npm install @midnight-ntwrk/midnight-js-contracts @midnight-ntwrk/midnight-js-types @midnight-ntwrk/compact-runtime @midnight-ntwrk/ledger-v8
```

Install 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).

## Rules

- `wallet-connection.md` — Detect, connect, and manage wallet state
- `provider-setup.md` — Bridge ConnectedAPI to MidnightProviders
- `transaction-flow.md` — Submit transactions through the wallet
- `proof-server.md` — 1AM ProofStation integration
- `common-mistakes.md` — Avoid CORS, v3 deprecation, WASM issues
- `network-config.md` — Network URLs and configuration

