{
  "timestamp": "2026-01-29T08:36:18.417563",
  "analysis_type": "lightning_dust_analysis",
  "network_state": {
    "channel_1": {
      "channel_id": "channel_1",
      "local_balance": 100000,
      "remote_balance": 50000,
      "local_dust": 1000,
      "remote_dust": 500,
      "total_dust": 1500,
      "dust_efficiency_loss": 0.01,
      "effective_capacity": 148500,
      "capacity_utilization": 0.99,
      "dust_ratios": {
        "local": 0.01,
        "remote": 0.01
      }
    },
    "channel_2": {
      "channel_id": "channel_2",
      "local_balance": 50000,
      "remote_balance": 100000,
      "local_dust": 2000,
      "remote_dust": 1500,
      "total_dust": 3500,
      "dust_efficiency_loss": 0.023333333333333334,
      "effective_capacity": 146500,
      "capacity_utilization": 0.9766666666666667,
      "dust_ratios": {
        "local": 0.04,
        "remote": 0.015
      }
    },
    "channel_3": {
      "channel_id": "channel_3",
      "local_balance": 75000,
      "remote_balance": 75000,
      "local_dust": 500,
      "remote_dust": 500,
      "total_dust": 1000,
      "dust_efficiency_loss": 0.006666666666666667,
      "effective_capacity": 149000,
      "capacity_utilization": 0.9933333333333333,
      "dust_ratios": {
        "local": 0.006666666666666667,
        "remote": 0.006666666666666667
      }
    }
  },
  "payment_simulations": {
    "amount_100": {
      "amount": 100,
      "total_routes": 6,
      "viable_routes": 0,
      "success_rate": 0.0,
      "average_fee": 0
    },
    "amount_500": {
      "amount": 500,
      "total_routes": 6,
      "viable_routes": 0,
      "success_rate": 0.0,
      "average_fee": 0
    },
    "amount_1000": {
      "amount": 1000,
      "total_routes": 6,
      "viable_routes": 6,
      "success_rate": 1.0,
      "average_fee": 23.833333333333332
    },
    "amount_5000": {
      "amount": 5000,
      "total_routes": 6,
      "viable_routes": 6,
      "success_rate": 1.0,
      "average_fee": 23.833333333333332
    },
    "amount_10000": {
      "amount": 10000,
      "total_routes": 6,
      "viable_routes": 6,
      "success_rate": 1.0,
      "average_fee": 23.833333333333332
    }
  },
  "economic_analysis": {
    "channel_1": {
      "channel_id": "channel_1",
      "opening_costs": {
        "tx_size": 250,
        "fee": 2500
      },
      "closing_costs": {
        "tx_size": 180,
        "fee": 1800
      },
      "dust_analysis": {
        "total_dust": 1500,
        "opportunity_cost": 75.0,
        "dust_ratio": 0.01
      },
      "anchor_outputs": {
        "value": 330,
        "savings": 660,
        "fee_bumping_capability": true
      },
      "commitment_optimization": {
        "base_weight": 724,
        "optimized_weight": 804,
        "fee_per_commitment": 8,
        "anchor_benefit": "CPFP fee bumping"
      },
      "economic_efficiency": {
        "total_fees": 4300,
        "dust_efficiency": 0.99,
        "break_even_utilization": 0.028666666666666667
      }
    },
    "channel_2": {
      "channel_id": "channel_2",
      "opening_costs": {
        "tx_size": 250,
        "fee": 3000
      },
      "closing_costs": {
        "tx_size": 180,
        "fee": 2160
      },
      "dust_analysis": {
        "total_dust": 3500,
        "opportunity_cost": 175.0,
        "dust_ratio": 0.023333333333333334
      },
      "anchor_outputs": {
        "value": 330,
        "savings": 660,
        "fee_bumping_capability": true
      },
      "commitment_optimization": {
        "base_weight": 724,
        "optimized_weight": 804,
        "fee_per_commitment": 9,
        "anchor_benefit": "CPFP fee bumping"
      },
      "economic_efficiency": {
        "total_fees": 5160,
        "dust_efficiency": 0.9766666666666667,
        "break_even_utilization": 0.0344
      }
    },
    "channel_3": {
      "channel_id": "channel_3",
      "opening_costs": {
        "tx_size": 250,
        "fee": 2000
      },
      "closing_costs": {
        "tx_size": 180,
        "fee": 1440
      },
      "dust_analysis": {
        "total_dust": 1000,
        "opportunity_cost": 50.0,
        "dust_ratio": 0.006666666666666667
      },
      "anchor_outputs": {
        "value": 330,
        "savings": 660,
        "fee_bumping_capability": true
      },
      "commitment_optimization": {
        "base_weight": 724,
        "optimized_weight": 804,
        "fee_per_commitment": 6,
        "anchor_benefit": "CPFP fee bumping"
      },
      "economic_efficiency": {
        "total_fees": 3440,
        "dust_efficiency": 0.9933333333333333,
        "break_even_utilization": 0.022933333333333333
      }
    }
  },
  "dust_strategies": {
    "amount_100": {
      "target_amount": 100,
      "is_dust": true,
      "strategies": [
        {
          "name": "batch_payments",
          "description": "Combine 4 payments into single HTLC",
          "effective_amount": 400,
          "dust_avoided": true,
          "complexity": "medium"
        },
        {
          "name": "anchor_outputs",
          "description": "Leverage anchor outputs for fee bumping",
          "min_amount": 330,
          "dust_avoided": true,
          "complexity": "low"
        },
        {
          "name": "channel_rebalancing",
          "description": "Rebalance channels to avoid dust creation",
          "dust_avoided": true,
          "complexity": "high",
          "requires_cooperation": true
        },
        {
          "name": "splicing",
          "description": "Add/remove funds to avoid dust states",
          "dust_avoided": true,
          "complexity": "high",
          "requires_onchain": true
        },
        {
          "name": "trampoline_routing",
          "description": "Use trampoline nodes for dust payments",
          "dust_avoided": true,
          "complexity": "medium",
          "requires_trampoline": true
        }
      ],
      "recommended_strategy": "batch_payments"
    },
    "amount_500": {
      "target_amount": 500,
      "is_dust": false,
      "strategies": [
        {
          "name": "anchor_outputs",
          "description": "Leverage anchor outputs for fee bumping",
          "min_amount": 330,
          "dust_avoided": true,
          "complexity": "low"
        },
        {
          "name": "channel_rebalancing",
          "description": "Rebalance channels to avoid dust creation",
          "dust_avoided": true,
          "complexity": "high",
          "requires_cooperation": true
        },
        {
          "name": "splicing",
          "description": "Add/remove funds to avoid dust states",
          "dust_avoided": true,
          "complexity": "high",
          "requires_onchain": true
        },
        {
          "name": "trampoline_routing",
          "description": "Use trampoline nodes for dust payments",
          "dust_avoided": true,
          "complexity": "medium",
          "requires_trampoline": true
        }
      ],
      "recommended_strategy": "anchor_outputs"
    },
    "amount_1000": {
      "target_amount": 1000,
      "is_dust": false,
      "strategies": [
        {
          "name": "anchor_outputs",
          "description": "Leverage anchor outputs for fee bumping",
          "min_amount": 330,
          "dust_avoided": true,
          "complexity": "low"
        },
        {
          "name": "channel_rebalancing",
          "description": "Rebalance channels to avoid dust creation",
          "dust_avoided": true,
          "complexity": "high",
          "requires_cooperation": true
        },
        {
          "name": "splicing",
          "description": "Add/remove funds to avoid dust states",
          "dust_avoided": true,
          "complexity": "high",
          "requires_onchain": true
        },
        {
          "name": "trampoline_routing",
          "description": "Use trampoline nodes for dust payments",
          "dust_avoided": true,
          "complexity": "medium",
          "requires_trampoline": true
        }
      ],
      "recommended_strategy": "anchor_outputs"
    },
    "amount_5000": {
      "target_amount": 5000,
      "is_dust": false,
      "strategies": [
        {
          "name": "anchor_outputs",
          "description": "Leverage anchor outputs for fee bumping",
          "min_amount": 330,
          "dust_avoided": true,
          "complexity": "low"
        },
        {
          "name": "channel_rebalancing",
          "description": "Rebalance channels to avoid dust creation",
          "dust_avoided": true,
          "complexity": "high",
          "requires_cooperation": true
        },
        {
          "name": "splicing",
          "description": "Add/remove funds to avoid dust states",
          "dust_avoided": true,
          "complexity": "high",
          "requires_onchain": true
        },
        {
          "name": "trampoline_routing",
          "description": "Use trampoline nodes for dust payments",
          "dust_avoided": true,
          "complexity": "medium",
          "requires_trampoline": true
        }
      ],
      "recommended_strategy": "anchor_outputs"
    },
    "amount_10000": {
      "target_amount": 10000,
      "is_dust": false,
      "strategies": [
        {
          "name": "anchor_outputs",
          "description": "Leverage anchor outputs for fee bumping",
          "min_amount": 330,
          "dust_avoided": true,
          "complexity": "low"
        },
        {
          "name": "channel_rebalancing",
          "description": "Rebalance channels to avoid dust creation",
          "dust_avoided": true,
          "complexity": "high",
          "requires_cooperation": true
        },
        {
          "name": "splicing",
          "description": "Add/remove funds to avoid dust states",
          "dust_avoided": true,
          "complexity": "high",
          "requires_onchain": true
        },
        {
          "name": "trampoline_routing",
          "description": "Use trampoline nodes for dust payments",
          "dust_avoided": true,
          "complexity": "medium",
          "requires_trampoline": true
        }
      ],
      "recommended_strategy": "anchor_outputs"
    }
  }
}