Skip to content

Add Satoshi API as a fee estimate fallback#567

Merged
jamespepper81 merged 3 commits into
BitSleuthAI:devfrom
Bortlesboat:codex/satoshi-api-fee-fallback
May 20, 2026
Merged

Add Satoshi API as a fee estimate fallback#567
jamespepper81 merged 3 commits into
BitSleuthAI:devfrom
Bortlesboat:codex/satoshi-api-fee-fallback

Conversation

@Bortlesboat
Copy link
Copy Markdown
Contributor

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=0
  • npx tsc --noEmit
  • git diff --check
  • curl -sS https://bitcoinsapi.com/api/v1/compat/mempool/fees/recommended

Note: full npm run lint -- --max-warnings=0 still reports an existing warning in app/wallet-setup.tsx (Array<T> style). I left that unrelated file untouched.

jamespepper81 and others added 3 commits February 23, 2026 18:15
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
@jamespepper81 jamespepper81 changed the base branch from main to dev May 20, 2026 09:29
@jamespepper81
Copy link
Copy Markdown
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/

@jamespepper81 jamespepper81 merged commit 062d0fc into BitSleuthAI:dev May 20, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants