barkd: add new api endpoint to get fee rates or estimates

  • check or remove this line after you've added a CHANGELOG entry or if your PR doesn't need one (they should go into CHANGELOG/unreleased/)

While I was working on creating barkd test framework, I faced a challenge which was there was no fee estimation in the API to properly test barkd. So I added this one.

  • Add /api/v1/fees endpoints to the barkd REST API so clients can estimate fees before executing operations
  • New endpoints: /fees/onchain, /fees/board, /fees/send-onchain, /fees/offboard-all, /fees/lightning/send,
    /fees/lightning/receive
  • Add estimate_offboard_all and estimate_lightning_send_fee methods to bark::Wallet for VTXO-aware fee calculation
Edited by luca

Merge request reports

Loading