Cashu-TS - v3.3.0
    Preparing search index...

    DocumentsWallet OperationsError Handling Patterns

    Error handling patterns

    try {
    const res = await wallet.ops.send(5, proofs).offlineExactOnly().run();
    console.log('Sent:', res.send.length, 'Kept:', res.keep.length);
    } catch (e) {
    // e is a proper Error (WalletOps normalizes unknowns internally)
    if ((e as Error).message.includes('Timeout')) {
    // …
    }
    throw e;
    }