get_raw_transaction
Fetch the raw transaction hex for any Bitcoin TXID. Use this to inspect transaction details or rebroadcast raw data.
Instructions
Fetch a transaction's raw hex. Needs a backend.
Args: txid: The 64-hex-character transaction ID. network: Override the server's network for this call.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"txid": "<txid>"
},
"name": "get_raw_transaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| txid | Yes | ||
| network | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |