lnd icon indicating copy to clipboard operation
lnd copied to clipboard

[feature request] add RPC for getting on-chain fee estimates

Open halseth opened this issue 8 years ago • 4 comments

Currently lnd fetches fee estimates from its chain backend several places, for instance: https://github.com/lightningnetwork/lnd/blob/ddcbb4089801bd632772ec57fba24f66e0bb3c97/rpcserver.go#L1112

These estimates are currently only used within lnd itself, and is not exposed to the user in any way.

Steps to completion:

  • [ ] Make a new RPC endpoint (proto + rpcserver implementation) that calls the estimator with a passed confirmation target.
  • [ ] Create a new lncli command estimatefee that takes a block number and uses the new RPC endpoint to return a fee estimate in sat/vbyte.

halseth avatar May 09 '18 11:05 halseth

I'd like to try this.

jrmillerwork avatar Jun 16 '18 10:06 jrmillerwork

@jrmillerwork There's already a PR up for this: #1228

halseth avatar Jun 16 '18 10:06 halseth

Okay, thanks. How to determine that there is a PR for a given issue?

jrmillerwork avatar Jun 16 '18 10:06 jrmillerwork

If you look above, there's a few issues/PRs referencing this issue. If you click the PR you can see that it says "Fixes #1212" 😄

halseth avatar Jun 16 '18 10:06 halseth