Add support for fee estimation with sub 1 satoshi

Open
#584 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
javascript
Domain
api

Research direction

The issue does not name a file or test. Start by locating the API fee-estimation endpoint and the code that produces its target-to-rate map; verify behavior for targets such as 1008 and rates below 1 sat/vB, with support down to 0.1 sat/vB as the done condition.

Written by the indexing model from the issue text.

Description

Currently, it is possible to broadcast transactions with a fee rate of sub-satoshi (below 1 sat/vB). However, the Esplora API is not capable of estimating fees with sub-1 satoshi. Even for 1008 blocks as a target, it still returns as 1:

{
  '1': 3.15,
  '2': 3.15,
  '3': 2.2520000000000002,
  '4': 2.132,
  '5': 2.132,
  '6': 2.132,
  '7': 1.199,
  '8': 1.199,
  '9': 1.199,
  '10': 1.199,
  '11': 1.199,
  '12': 1.199,
  '13': 1.081,
  '14': 1.081,
  '15': 1.081,
  '16': 1.015,
  '17': 1.015,
  '18': 1,
  '19': 1,
  '20': 1,
  '21': 1,
  '22': 1,
  '23': 1,
  '24': 1,
  '25': 1,
  '144': 1,
  '504': 1,
  '1008': 1
}

It would be good to add support for estimations as low as 0.1 sat / vB.

Dominant language
JavaScript
Stars
1.3k
Forks
527
Avg merge
2d 5h
Merged PRs (30d)
4

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Blockstream/esplora

All issues in Blockstream/esplora

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.