Skip to main content

Overview

Sovran allows you to use multiple Cashu mints simultaneously. The mint management system handles:
  • Discovering and adding new mints
  • Viewing mint information and metadata
  • Trusting/untrusting mints
  • Checking mint balances
  • Restoring funds from mints

Adding Mints

Via the Add Mints Screen

The primary mint discovery interface (app/(mint-flow)/add.tsx) shows:
  1. Discovered mints from Nostr and Sovran’s curated list
  2. KYM scores (community ratings)
  3. Audit data (success rates, operation counts)
  4. Currency filters (SAT, USD, EUR, GBP)

Discovery Sources

Nostr Discovery (useNostrDiscoveredMints):
  • Subscribes to kind 10002 (relay lists) for mint recommendations
  • Extracts mint URLs from Nostr events
  • Fetches mint info for each discovered URL
Sovran Discovery (useSovranDiscoveredMints):
  • Curated list from Sovran’s backend
  • Pre-vetted, high-quality mints
  • Updated regularly

Adding a Mint Programmatically

URL Validation

The useDebouncedMintValidation hook validates mint URLs in real-time:
Validation checks:
  • URL format (https:// or http://)
  • Reachability
  • Valid Cashu mint (responds to GET /v1/info)
  • NUT support (protocols implemented)

Mint List Screen

The mint list (app/(mint-flow)/list.tsx) displays owned mints with:
  • Balance per mint
  • Currency filtering
  • Mint selection for operations
  • Quick access to mint details

Filtering Mints

By currency:
By balance:

Mint Information

The mint info screen (app/(mint-flow)/info.tsx) displays comprehensive mint details:

Basic Info

Usage Example

Mint Operations

Trust Management

Getting Balances

Restoring Funds

If you’ve lost local proof data but have your mnemonic, restore from mints:
How it works:
  1. Derives proof secrets from your mnemonic
  2. Queries mint for matching proofs
  3. Downloads and stores valid proofs
  4. Updates local balance
Restore only works if the mint still has your proofs. If proofs were already redeemed by someone else, they cannot be recovered.

Mint Selection UI

The MintListScreen component provides a reusable mint selection interface:

Currency Tabs

The mint list includes currency filtering with animated tabs:

Advanced: Direct Manager Access

For low-level operations, use the CocoManager directly:

Best Practices

Don’t put all your funds in one mint. Distribute across 3-5 trusted mints to reduce custodial risk.
Always review KYM scores and audit data before trusting a new mint. See Know Your Mint.
Keep an eye on per-mint balances. Use wallet rebalancing to maintain target distributions.
Your mnemonic is the only way to restore funds if you lose your device. Store it securely offline.

Error Handling

Know Your Mint

Learn about mint auditing and ratings

Wallet Rebalancing

Automatically distribute balance across mints