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

n8n · Finance

How to Use mempool.space Recent Bitcoin blocks in n8n

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 n8n

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

Every hour, use mempool.space Recent Bitcoin blocks for Bitcoin mainnet and summarize newly observed block heights, transaction counts, and weights.

mempool.space Recent Bitcoin blocksn8n
Try asking
  • Every Monday at 9am: use mempool.space Recent Bitcoin blocks to look this up and give me the result as a table.

  • 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 n8n

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

Use the Spiral skill

  1. Send n8n 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 Spiral's MCP server

  1. Create a key

    Create a key under API keys in the console.

  2. Add an MCP Client node

    In a workflow, add an MCP Client node (or, under an AI Agent node, an MCP Client Tool) and set:

    https://api.spiral.ai/mcp
  3. Pick a tool

    The node lists Spiral's tools. In an MCP Client node pick one, such as run, and give it its arguments:

    {
      "provider": "fal",
      "model": "fal-ai/flux/schnell",
      "input": { "prompt": "a lighthouse at dawn" },
      "wait": true
    }
  4. Run mempool.space Recent Bitcoin blocks in a workflow step

    Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds mempool.space Recent Bitcoin blocks, prices it and runs it each time the step fires.

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: n8n 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 n8n 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 n8n?

Produce a recurring Bitcoin operations brief from changes in mempool.space address activity, blocks, and network conditions. An agent can compare successive observations and report new transactions, output changes, and shifts in fee pressure.

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 n8n

Can n8n use mempool.space Recent Bitcoin blocks?

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

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

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

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

You need no Alexandria account. n8n uses one Spiral API key for every tool, and Spiral runs mempool.space Recent Bitcoin blocks on its own Alexandria account.

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

About two minutes: create a key, then add an MCP Client node, then pick a tool.

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

mempool.space Recent Bitcoin blocks runs in the background. n8n 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 n8n

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

Paste this into n8n:

Set up n8n

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