A Cashu ecash wallet CLI for Bitcoin and Lightning payments. Use when managing Cashu tokens, sending/receiving payments via Lightning (bolt11) or ecash, or viewing wallet history.
Cocod is a Cashu wallet for managing ecash tokens and making Bitcoin/Lightning payments. It uses the Cashu protocol for privacy-preserving ecash transactions.
Cashu is a Chaumian ecash protocol that lets you hold and transfer Bitcoin-backed tokens privately. It enables unlinkable transactions using blind signatures.
```bash
bun install -g cocod
```
```bash
cocod init
cocod init --mint-url https://mint.example.com
cocod balance
```
```bash
cocod status
cocod init [mnemonic] [--passphrase <passphrase>] [--mint-url <url>]
cocod unlock <passphrase>
cocod balance
cocod ping
```
```bash
cocod receive cashu <token>
cocod receive bolt11 <amount> [--mint-url <url>]
```
```bash
cocod send cashu <amount> [--mint-url <url>]
cocod send bolt11 <invoice> [--mint-url <url>]
```
```bash
cocod mints add <url>
cocod mints list
cocod mints info <url>
```
Lightning Addresses are email-style identifiers (like `[email protected]`) that let others pay you over Lightning. If you have not purchased a username, NPC provides a free address from your Nostr npub; purchasing a username gives you a human-readable handle. Buying a username is a two-step flow so you can review the required sats before confirming payment.
```bash
cocod npc address
cocod npc username <name>
cocod npc username <name> --confirm
```
```bash
cocod history
cocod history --offset 0 --limit 20
cocod history --watch
cocod history --limit 50 --watch
```
```bash
cocod daemon
cocod stop
```
**Initialize with encryption:**
```bash
cocod init --passphrase "my-secret"
```
**Receive via Lightning:**
```bash
cocod receive bolt11 5000
```
**Pay a Lightning invoice:**
```bash
cocod send bolt11 lnbc100u1p3w7j3...
```
**Send Cashu to a friend:**
```bash
cocod send cashu 1000
```
**Check status and balance:**
```bash
cocod status
cocod balance
```
**View recent history:**
```bash
cocod history --limit 10
```
Leave a review
No reviews yet. Be the first to review this skill!