Add Satoshi API as a fee estimate fallback#567
Merged
jamespepper81 merged 3 commits intoMay 20, 2026
Conversation
Primarily refines dependency arrays in React hooks to prevent unnecessary re-renders and refetch loops ➿
minor update to the `AnimatedNumber` component to ensure that a `defaultValue` property is included in the animated props
Contributor
|
Thanks for this - I’m just looking over some of your other work as well. I’ll be open sourcing https://app.bitsleuth.ai soon, which is a Bitcoin wallet analysis tool that you might find interesting. Feel free to check out the site as well: https://www.bitsleuth.ai/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Satoshi API, the Bitcoin fee API at bitcoinsapi.com, as one extra fallback source in the wallet fee estimator.
The existing order still tries mempool.space first. If that direct recommended-fees call fails, this PR tries Satoshi API's mempool-compatible free endpoint before falling back to the mempool-blocks heuristic and then Blockstream.
Why
The endpoint returns the same fee bucket shape the service already consumes:
{ fastestFee: 2.13, halfHourFee: 2.13, hourFee: 2.01, economyFee: 1.0, minimumFee: 1.0 }That gives the wallet another no-auth fee source without changing defaults or transaction behavior.
Checks
npx eslint services/fee-service.ts --max-warnings=0npx tsc --noEmitgit diff --checkcurl -sS https://bitcoinsapi.com/api/v1/compat/mempool/fees/recommendedNote: full
npm run lint -- --max-warnings=0still reports an existing warning inapp/wallet-setup.tsx(Array<T>style). I left that unrelated file untouched.