Skip to content

Allow mempool blocks URL override#20

Open
Bortlesboat wants to merge 1 commit intoSymphonic3:mainfrom
Bortlesboat:mempool-blocks-url-env-20260430
Open

Allow mempool blocks URL override#20
Bortlesboat wants to merge 1 commit intoSymphonic3:mainfrom
Bortlesboat:mempool-blocks-url-env-20260430

Conversation

@Bortlesboat
Copy link
Copy Markdown

This keeps the bot defaulting to mempool.space, but lets operators set MEMPOOL_BLOCKS_URL when they want the fee and mempool commands to use another mempool-blocks-compatible source.

I work on Satoshi API; one compatible URL for that variable is:

https://bitcoinsapi.com/api/v1/compat/mempool/fees/mempool-blocks

The change is provider-neutral and keeps the existing default unchanged. It should also work for a self-hosted mempool.space instance or other compatible endpoint.

Verification:

  • node --check commands/fee.js
  • node --check commands/mempool.js
  • git diff --check

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.

1 participant