tx_decode_explain
Fetch a Bitcoin transaction by txid and return a structured, agent-ready summary: type (P2WPKH/P2TR/P2SH/etc.), input/output counts, fees, fee rate in sat/vB, confirmation status, RBF flag, SegWit/Taproot flags, and a one-line agent_summary string ready for LLM context injection. Saves 500-2000 tokens vs parsing raw TX JSON. Price: 25 sats per 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": "tx_decode_explain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| txid | Yes | Bitcoin transaction ID (64 hex characters). | |
| l402_proof | No | L402 payment proof "<macaroon>:<preimage>". Omit on the first call; an unpaid call returns a 25 sat Lightning invoice and the macaroon. Pay the invoice, then repeat the call with this argument set. |