# Bitcoin Transaction Decoder

> Bitcoin Transaction Decoder is a paid API for AI agents from api.agentstools.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Decodes a Bitcoin transaction by txid, returning inputs, outputs, fee, size, weight, vsize, RBF flag, and confirmation status.

## Facts

- Endpoint: GET https://api.agentstools.dev/btc/tx
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bitcoin-transaction-decoder-bcdaa69b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9yO_ZbJov4MNO9wZf4hE7

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability bitcoin-transaction-decoder-bcdaa69b
```

Example prompt: Can you decode Bitcoin transaction 4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b for me — I want to see its inputs, outputs, fee, size, weight, and whether it's confirmed yet?

## When to prefer this

Use this endpoint when you need detailed decoded data about a specific Bitcoin transaction — including its inputs, outputs, fee, weight, vsize, and confirmation count — identified by its txid. Prefer it over block-level endpoints when you have a transaction hash and need transaction-specific fields like RBF status or fee.

## Known failure modes

- Invalid or malformed txid (not 64 hex characters) returns a 400 error
- Transaction not found on-chain or in mempool returns a 404 error
- Network timeout or upstream Bitcoin node unavailability returns a 503 error
- Payment not included or insufficient returns a 402 error

## How this service works

Decoded Bitcoin transaction by txid: inputs and outputs, fee, size, weight and virtual size, replace-by-fee flag, and confirmation status with a confirmation count. Informational, not advice.

## Output

A structured object containing the transaction's inputs list, outputs list, fee in satoshis, raw byte size, weight units, virtual size (vsize), replace-by-fee (RBF) flag, and confirmation status with a count of confirmations.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "txid"
     ],
     "properties": {
      "txid": {
       "type": "string",
       "description": "Bitcoin transaction id (64 hex characters)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bitcoin-transaction-decoder-bcdaa69b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agentstools.dev](https://www.zero.xyz/host/api.agentstools.dev/llms.txt)
