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
| Name | Type | Required | Description |
|---|---|---|---|
txid | string | yes | |
network | string | no |
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
| Field | Type | Description |
|---|---|---|
txid | string | Transaction ID |
version | number | Transaction version |
locktime | number | Locktime |
vin | array | Input array |
vout | array | Output array |
size | number | Transaction size in bytes |
weight | number | Transaction weight in WU |
fee | number | Transaction fee in satoshis |
status | object | Confirmation 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.