Spiral gives your agent every tool with one account. Browse the tools →

Windsurf · Finance

How to Use mempool.space Recent Bitcoin blocks in Windsurf

Returns a sequence of Bitcoin block summaries, starting at the chain tip or an earlier height. Use it to compare recent blocks or scan a historical stretch before inspecting individual blocks.

Prompts to try with mempool.space Recent Bitcoin blocks in Windsurf

Copy an example into Windsurf, or ask in your own words.

Use mempool.space Recent Bitcoin blocks starting at height 840000 and build a comparison table of heights, transaction counts, sizes, and weights.

mempool.space Recent Bitcoin blocksWindsurf
Try asking
  • Use mempool.space Recent Bitcoin blocks to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from mempool.space Recent Bitcoin blocks and tell me what changed since last week.

  • Check mempool.space Recent Bitcoin blocks and summarize what you find in three bullet points.

  • Pull the newest data from mempool.space Recent Bitcoin blocks and give me the result as a table.

How to set up mempool.space Recent Bitcoin blocks in Windsurf

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the server

    Open the Customize page from the Agents window and click MCPs. Under This computer, open the config file, or edit it directly: ~/.config/devin/mcp_config.json on macOS and Linux, %APPDATA%\devin\mcp_config.json on Windows. Add this:

    {
      "mcpServers": {
        "spiral": {
          "url": "https://api.spiral.ai/mcp"
        }
      }
    }
  2. Sign in

    Click Authenticate on the Spiral server in Customize › MCPs, or let the agent call Spiral once: your browser opens. Sign in to Spiral, pick the organization and click Authorize. No API key.

    devin mcp login spiral
  3. Check it

    Spiral is listed under This computer in Customize › MCPs. From the terminal:

    devin mcp list

Use the Spiral skill

  1. Send Windsurf this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run mempool.space Recent Bitcoin blocks

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "alexandria",
        "model": "mempool-space/crypto/blocks",
        "input": {
          "start_height": 0
        }
      }'

Then paste one of the prompts above: Windsurf finds mempool.space Recent Bitcoin blocks on Spiral, shows the price and runs it.

mempool.space Recent Bitcoin blocks providers and prices

Spiral runs mempool.space Recent Bitcoin blocks through Alexandria. Open a card for today's price, with every fee included.

AlexandriaFinance
mempool.space · Blocks
mempool-space/crypto/blocks

Settings you can ask for

Ask Windsurf for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Start height0 to 10000000

Highest block to return (default: the tip); pass the previous page's next_start_height.

Every API field of mempool.space · Blocks is on its tool page: open its card above.

What can you do with mempool.space Recent Bitcoin blocks in Windsurf?

Build a Bitcoin payment review screen with address activity, transaction structure, and block evidence from mempool.space. Coding agents can turn those responses into project views for remaining outputs, fee recommendations, and congestion.

Explain a merchant payment's status

Inspect a payment's inputs, outputs, and confirmation status alongside the receiving address's history and totals. Check its containing block and contents after confirmation, or compare current fee guidance and backlog while it remains pending.

Produce a nonprofit settlement brief

Summarize new address activity, remaining outputs, and changes in output spending status. Add recent block activity, selected block details, and current fee pressure to give the finance team a compact Bitcoin settlement report.

Build a merchant Bitcoin operations screen

Show receipt history, address totals, remaining outputs, and the status of selected payment outputs. Place recent blocks, current fee recommendations, and backlog measurements beside those payment records.

Compare Bitcoin block contents

Scan a stretch of block summaries, compare transaction counts and block weights, and load selected blocks' transaction pages. Inspect individual transactions to explain differences in size and fees.

Create a Bitcoin data lesson

Use a nonprofit's published donation address and historical blocks to teach address totals, transaction inputs and outputs, unspent outputs, and spending links. Contrast confirmed block contents with the current backlog and suggested fee rates.

Questions about mempool.space Recent Bitcoin blocks in Windsurf

Can Windsurf use mempool.space Recent Bitcoin blocks?

Yes. Add Spiral to Windsurf as an MCP server, and Windsurf can find and run mempool.space Recent Bitcoin blocks like any built-in tool.

How much does mempool.space Recent Bitcoin blocks cost in Windsurf?

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Windsurf plan is separate.

Do I need an Alexandria account to use mempool.space Recent Bitcoin blocks in Windsurf?

No. Spiral runs mempool.space Recent Bitcoin blocks on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up mempool.space Recent Bitcoin blocks in Windsurf?

About two minutes: add the server, then sign in, then check it.

Does Windsurf wait while mempool.space Recent Bitcoin blocks runs?

mempool.space Recent Bitcoin blocks runs in the background. Windsurf starts the run, checks on it and gives you the json when it's ready.

Does mempool.space show one universal list of pending Bitcoin transactions?

Its pending view comes from multiple Bitcoin nodes. Mempool.space uses both nodes with the default 300 MB limit and larger nodes that retain low-fee transactions during congestion.

How quickly does mempool.space update its projected blocks?

Its transaction-selection algorithm runs every two seconds. That cadence applies to projected blocks and should not be read as a refresh guarantee for every REST response.

How much address history does one upstream request include?

The documented initial address-history request includes up to 50 pending transactions and 25 confirmed transactions. Older confirmed activity is paged in batches of 25; pending-only history has no paging.

How many transactions can a block-contents request return?

The source serves up to 25 transactions per block-transactions page. A block containing more transactions requires additional pages.

What does the mempool backlog measure?

It reports pending transaction count, total virtual size, and total fees. Its histogram also divides queued virtual bytes into fee-rate bands, which helps distinguish a large low-fee backlog from competition at higher rates.

Get started

Start using mempool.space Recent Bitcoin blocks in Windsurf

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Windsurf:

Set up Windsurf

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options