This section collects the shortest paths through the library for common wallet tasks. Use it as an entry point, then jump into the focused recipe for the exact flow you need.
If you want end-to-end examples with realistic state handling, also inspect the integration tests.
If you are building a wallet integration from scratch, read these in order:
| Recipe | Use it for |
|---|---|
| Create Wallet | Initialize a wallet from a mint URL or cached mint state. |
| Mint Token | Create proofs from a paid quote, including two-step mint flows. |
| Create Token | Send standard Cashu tokens to another wallet. |
| Create P2PK | Send tokens locked to a public key. |
| Get Token | Inspect token metadata before wallet creation or decode it after load. |
| Melt Token | Pay BOLT11 invoices or other payment methods with wallet proofs. |
| Bolt12 | Work with reusable BOLT12 offers for minting and melting. |
| NUT-19 Cached Responses | Understand cached endpoint retries and timeout behavior. |
| Logging | Enable and route library logs while debugging wallet or mint behavior. |
wallet.ops API.