get_transaction

Pack: mempool-space · Endpoint: https://gateway.pipeworx.io/mempool-space/mcp

Fetch full transaction detail (inputs, outputs, fee, size, confirmation status) for a given txid on mainnet/testnet/signet/liquid.

Parameters

NameTypeRequiredDescription
txidstringyes
networkstringno

Example call

Arguments

{
  "txid": "1da1f48e9e20a6be6fa7d4df5c5e9e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e",
  "network": "mainnet"
}

curl

curl -X POST https://gateway.pipeworx.io/mempool-space/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_transaction","arguments":{"txid":"1da1f48e9e20a6be6fa7d4df5c5e9e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e","network":"mainnet"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('get_transaction', {
  "txid": "1da1f48e9e20a6be6fa7d4df5c5e9e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e",
  "network": "mainnet"
});

Response shape

FieldTypeDescription
txidstringTransaction ID
versionnumberTransaction version
locktimenumberLocktime
vinarrayInput array
voutarrayOutput array
sizenumberTransaction size in bytes
weightnumberTransaction weight in WU
feenumberTransaction fee in satoshis
statusobjectConfirmation status
Full JSON Schema
{
  "type": "object",
  "properties": {
    "txid": {
      "type": "string",
      "description": "Transaction ID"
    },
    "version": {
      "type": "number",
      "description": "Transaction version"
    },
    "locktime": {
      "type": "number",
      "description": "Locktime"
    },
    "vin": {
      "type": "array",
      "description": "Input array",
      "items": {
        "type": "object",
        "properties": {
          "txid": {
            "type": "string",
            "description": "Previous transaction ID"
          },
          "vout": {
            "type": "number",
            "description": "Output index"
          },
          "prevout": {
            "type": "object",
            "description": "Previous output info"
          },
          "scriptsig": {
            "type": "string",
            "description": "Script signature"
          },
          "scriptsig_asm": {
            "type": "string",
            "description": "Script signature assembly"
          },
          "witness": {
            "type": "array",
            "description": "Witness data"
          },
          "is_coinbase": {
            "type": "boolean",
            "description": "Is coinbase input"
          },
          "sequence": {
            "type": "number",
            "description": "Sequence number"
          }
        }
      }
    },
    "vout": {
      "type": "array",
      "description": "Output array",
      "items": {
        "type": "object",
        "properties": {
          "scriptpubkey": {
            "type": "string",
            "description": "Script pubkey"
          },
          "scriptpubkey_asm": {
            "type": "string",
            "description": "Script pubkey assembly"
          },
          "scriptpubkey_type": {
            "type": "string",
            "description": "Script type (p2pkh, p2sh, etc)"
          },
          "scriptpubkey_address": {
            "type": "string",
            "description": "Output address"
          },
          "value": {
            "type": "number",
            "description": "Output value in satoshis"
          }
        }
      }
    },
    "size": {
      "type": "number",
      "description": "Transaction size in bytes"
    },
    "weight": {
      "type": "number",
      "description": "Transaction weight in WU"
    },
    "fee": {
      "type": "number",
      "description": "Transaction fee in satoshis"
    },
    "status": {
      "type": "object",
      "description": "Confirmation status",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "description": "Is confirmed"
        },
        "block_height": {
          "type": "number",
          "description": "Confirmed block height"
        },
        "block_hash": {
          "type": "string",
          "description": "Confirmed block hash"
        },
        "block_time": {
          "type": "number",
          "description": "Block timestamp"
        }
      }
    }
  }
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "mempool-space": {
      "url": "https://gateway.pipeworx.io/mempool-space/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build July 6, 2026