Api Endpoint

Bitcoin Transaction Decoder

Decode a raw Bitcoin transaction (hex): txid, wtxid, size, vsize, weight, inputs, outputs with addresses and values, SegWit and RBF flags. Nothing is broadcast.

Open interactive test console

Offering

Provider
diamond.btc-intel.workers.dev
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Other
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://diamond.btc-intel.workers.dev/api/x402/decode_tx
MIME type
application/json
First seen
2026-11-08T18:43:24.413Z
Last seen
Tags
Bitcoin, Transaction, decode, developer, raw-tx

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.003 USDC
Atomic price: 3000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "3000",
    "payTo": "0x440D635d2e32376d61b4a84872A34205D07D9D7e"
  }
]

Observed health

Status
Healthy
Latest latency
103 ms
Average latency
351 ms
HTTP status
402
Last checked
Reachability
100% over 8 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET"
      ]
    },
    "queryParams": {
      "type": "object",
      "properties": {
        "hex": {
          "type": "string",
          "maxLength": 200000,
          "description": "Raw transaction as hex"
        }
      },
      "additionalProperties": false,
      "required": [
        "hex"
      ]
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "type": "json",
  "example": {
    "product": "decoded_transaction",
    "txid": "a1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d",
    "vsize": 141,
    "segwit": true,
    "rbf_signaled": true,
    "outputs": [
      {
        "n": 0,
        "btc": 0.001,
        "address": "bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4",
        "type": "witness_v0_keyhash"
      }
    ]
  }
}