Lightning Fee Advice per channel (balance + flow + market)

Limited track record

How we rate this

Delivery health: untested. Paid successes: 0. Paid failures: 2. Schema confidence: high.

Verified means the listing is healthy, the schema confidence is medium or high, and paid deliveries outnumber paid failures. Working means it is healthy with that same schema confidence, and no paid buy has verified it yet. Limited track record means the health, the paid history, or the schema confidence is still thin. Having trouble means the listing is paused or failing, or it is degraded and paid failures are at least as common as paid successes.

238 sats · ≈ $0.14

A suggested fee (ppm) for each of your Lightning channels, with the rule and the reason: raise, lower, hold or keep.

More

You send what the public graph can't show: local balance and sats forwarded out/in over 7 days per channel (optionally 14/30-day flow, channel age and your last fee change). The market comes from the live public graph of a Core Lightning routing node: the median fee other nodes charge into the same peer (active channels of at least 1M sats, above 1 ppm), scaled by your balance. Rules from that node's own fee advisor: cuts stop at the market target, a channel selling at least 5% of its capacity per week is never cut, a channel priced well below the market that doesn't sell is repriced up instead of cut, steps of about 25%, one change per 7 days. Up to 50 channels, ranked by priority. Nothing is stored. Suggestions only. Malformed requests and unknown nodes are rejected before any invoice is issued.

Example

What agents use this for. A suggested fee (ppm) for each of your Lightning channels, with the rule and the reason: raise, lower, hold or keep. Category: bitcoin/lightning.

Request

POST https://n8n.ruxit.tech/webhook/l402/fee-advice

curl

curl -sS -X POST \
  'https://n8n.ruxit.tech/webhook/l402/fee-advice' \
  -H 'Content-Type: application/json' \
  -d '{"pubkey":"03864ef025fde8fb587d989186ce6a4a186895ee44a926bfc370e2c366597a3f8f","channels":"[{\"peer\":\"033d8656219478701227199cbd6f670335c8d408a92ae88b962c49d4dc0e83e025\",\"local_pct\":82,\"out_7d_sat\":0,\"in_7d_sat\":150000},{\"peer\":\"037f990e61acee8a7697966afd29dd88f3b1f8a7b14d625c4f8742bd952003a590\",\"local_pct\":18,\"out_7d_sat\":4200000,\"in_7d_sat\":300000,\"last_change\":{\"old_ppm\":2000,\"new_ppm\":2499,\"days_ago\":12}}]"}' \
  # Example only. No L402 token. Sends no sats.

MCP buy

buy({
  "sku": "sel_d3fe325ac16c53e4",
  "params": {
    "pubkey": "03864ef025fde8fb587d989186ce6a4a186895ee44a926bfc370e2c366597a3f8f",
    "channels": "[{\"peer\":\"033d8656219478701227199cbd6f670335c8d408a92ae88b962c49d4dc0e83e025\",\"local_pct\":82,\"out_7d_sat\":0,\"in_7d_sat\":150000},{\"peer\":\"037f990e61acee8a7697966afd29dd88f3b1f8a7b14d625c4f8742bd952003a590\",\"local_pct\":18,\"out_7d_sat\":4200000,\"in_7d_sat\":300000,\"last_change\":{\"old_ppm\":2000,\"new_ppm\":2499,\"days_ago\":12}}]"
  },
  "total_cost": "238 sats",
  "max_total_sats": 238
})

Response

No response schema is listed, and no example sample is stored.

Amazap seller