⚡
Lightning Node Management
🇺🇸 English
🇺🇸 English
  • Contents
  • Lightning basics
  • Create inbound liquidity
  • Create outbound liquidity
  • Comparison table of software implementations
  • Comparison table of lightning channel markets
  • Node Types
    • Merchant
    • Spending
    • Routing
  • Advanced Tools
    • lnd.conf example
    • Advanced and automated fee settings
    • Set up an LND watchtower and connect a client
    • Methods to create a balanced channel with a trusted peer
    • Pool usage notes
    • Bos Score
  • Technicals
    • Connecting to a lightning node remotely
    • High onchain fee environment
    • Compact the LND database (channel.db)
    • Manage the LND onchain funds in Electrum Wallet
  • Recovery
    • Resources for LND
    • Resources for Core Lightning
  • Privacy
    • Resources on Lightning privacy
    • VPN tunnels
  • Hardware deployment
    • Hardware recommendations
    • RaspiBolt
    • RaspiBlitz
      • charge-lnd
      • Balance of Satoshis Telegram Bot
      • LND updates
      • Bitcoin Core updates
      • VPN and firewall setup
    • TrueNAS (FreeBSD) node
      • aliases
      • Balance of Satoshis
      • Lightning Terminal
      • Circuitbreaker
      • LNtop
      • LND notes
      • stream-lnd-htlcs
      • Suez
      • Tailscale
      • Connect Zeus
  • Donate
    • Donations
Powered by GitBook
On this page
  • Balance of Satoshis
  • charge-lnd
  • LND fees manager
  • More reading

Was this helpful?

Edit on GitHub
  1. Advanced Tools

Advanced and automated fee settings

Previouslnd.conf exampleNextSet up an LND watchtower and connect a client

Last updated 1 year ago

Was this helpful?

$ bos fees --help

USAGE
  bos fees 
  List out fee rates, fix problems with routing policies, set out fees
  When setting fee, if channels pending, will wait for confirm to set
  Set-fee-rate can use formulas: https://formulajs.info/functions/
  You can use INBOUND_FEE_RATE to mirror an inbound fee
  Specify PERCENT(0.00) to set the fee as a fraction of routed amount
  Specify BIPS() to set the fee as parts per thousand
  You can use INBOUND and OUTBOUND in formulas for IF formulas
OPTIONS
  --node <node_name>         Node to find record on                    optional      
  --set-fee-rate <rate>      Forward fee in parts per million          optional      
  --to <peer>                Peer public key or alias to set fees      optional

Set channel fees based on policy. This script matches your open channels against a number of customizable criteria and applies a channel policy based on the matching section.

lndfeesmanager is a simple software that aims to balance LN channels using a dynamic fees. When a channel is unbalanced it will update the fees.

If the balance is mostly local, fees will be decreased to incentivise routing. If the balance is mostly remote, fees will be increased to disincentivise routing. If the channel is balanced, a medium fee will be set.

More reading

An article with useful formulas:

Balance of Satoshis
charge-lnd
LND fees manager
http://satbase.org/routing-fees/