{
  "x402Version": 2,
  "id": 30672,
  "slug": "30672",
  "resource": "https://preflight402.com/v1/btc/tx-inspect",
  "description": "Call before signing or broadcasting a Bitcoin transaction. Decodes a raw transaction hex or a PSBT and returns inputs, outputs, script types, addresses, vsize, fee rate when derivable, and objective signals such as RBF, dust outputs, non-standard sighash flags and unsigned inputs. Parses only the bytes you send: no network access. Describes the transaction; never advises whether to sign it.",
  "type": "http",
  "serviceName": "Preflight",
  "resourceType": "Travel",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xB9Db3966C7F18283624C97E860a84CEf7f9ba607",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "100000",
      "amountUsd": 0.1,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "raw": "0100000001c997a5e56e104102fa209c6a852dd90660a20b2d9c352423edce25857fcd3704000000004847304402204e45e16932b8af514961a1d3a1a25fdf3f4f7732e9d624c6c61548ab5fb8cd410220181522ec8eca07de4860a4acdd12909d831cc56cbbac4622082221a8768d1d0901ffffffff0200ca9a3b00000000434104ae1a62fe09c5f51b13905f07f06b99a2f7159b2225f374cd378d71302fa28414e7aab37397f554a7df5f142c21c1b7303b8a0626f1baded5c72a704f7e6cd84cac00286bee0000000043410411db93e1dcdb8a016b49840f8c53bc1eb68a382e97b1482ecad7b148a6909a5cb2e0eaddfb84ccf9744464f82e160bfa9b8b64f9d4c03f999b8643f656b412a3ac00000000"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "fee_rate_sat_vb": 10,
            "fee_sats": 1410,
            "inputs": [
              {
                "address": "bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4",
                "has_final_script": false,
                "partial_sigs": 0,
                "prev_txid": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
                "prev_vout": 1,
                "script_sig": "",
                "sequence": 4294967293,
                "witness": [],
                "witness_utxo_value_sats": 50000
              }
            ],
            "kind": "psbt",
            "locktime": 0,
            "outputs": [
              {
                "address": "bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4",
                "script_pubkey": "0014751e76e8199196d454941c45d1b3a323f1433bd6",
                "script_type": "p2wpkh",
                "value_sats": 12000
              },
              {
                "script_pubkey": "5120cdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd",
                "script_type": "p2tr",
                "value_sats": 330
              }
            ],
            "signals": [
              "rbf_enabled",
              "dust_output",
              "unsigned_inputs"
            ],
            "thresholds": {
              "dust_output_sat": 546,
              "high_fee_rate_sat_vb": 100
            },
            "txid": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
            "version": 2,
            "vsize": 141,
            "weight": 561
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "network": {
                    "default": "mainnet",
                    "enum": [
                      "mainnet",
                      "testnet"
                    ],
                    "type": "string"
                  },
                  "psbt": {
                    "type": "string"
                  },
                  "raw": {
                    "type": "string"
                  }
                },
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    },
    "builder-code": {
      "info": {
        "s": [
          "cdp_sdk_server"
        ]
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "a": {
            "description": "App builder code",
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          },
          "s": {
            "description": "Service builder codes",
            "items": {
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            },
            "maxItems": 11,
            "type": "array"
          },
          "w": {
            "description": "Wallet builder code",
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          }
        },
        "type": "object"
      }
    },
    "eip2612GasSponsoring": {},
    "erc20ApprovalGasSponsoring": {}
  },
  "tags": [
    "bitcoin",
    "crypto",
    "transaction",
    "psbt",
    "security",
    "bazaar",
    "builder-code",
    "eip2612GasSponsoring",
    "erc20ApprovalGasSponsoring"
  ],
  "sourceHost": "preflight402.com",
  "lastUpdated": "2026-09-28T08:47:34.184Z",
  "quality": {
    "calls30d": 1,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-09-28T08:47:33.524Z"
  },
  "metadata": {
    "serviceName": "Preflight",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "raw": "0100000001c997a5e56e104102fa209c6a852dd90660a20b2d9c352423edce25857fcd3704000000004847304402204e45e16932b8af514961a1d3a1a25fdf3f4f7732e9d624c6c61548ab5fb8cd410220181522ec8eca07de4860a4acdd12909d831cc56cbbac4622082221a8768d1d0901ffffffff0200ca9a3b00000000434104ae1a62fe09c5f51b13905f07f06b99a2f7159b2225f374cd378d71302fa28414e7aab37397f554a7df5f142c21c1b7303b8a0626f1baded5c72a704f7e6cd84cac00286bee0000000043410411db93e1dcdb8a016b49840f8c53bc1eb68a382e97b1482ecad7b148a6909a5cb2e0eaddfb84ccf9744464f82e160bfa9b8b64f9d4c03f999b8643f656b412a3ac00000000"
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "fee_rate_sat_vb": 10,
              "fee_sats": 1410,
              "inputs": [
                {
                  "address": "bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4",
                  "has_final_script": false,
                  "partial_sigs": 0,
                  "prev_txid": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
                  "prev_vout": 1,
                  "script_sig": "",
                  "sequence": 4294967293,
                  "witness": [],
                  "witness_utxo_value_sats": 50000
                }
              ],
              "kind": "psbt",
              "locktime": 0,
              "outputs": [
                {
                  "address": "bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4",
                  "script_pubkey": "0014751e76e8199196d454941c45d1b3a323f1433bd6",
                  "script_type": "p2wpkh",
                  "value_sats": 12000
                },
                {
                  "script_pubkey": "5120cdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd",
                  "script_type": "p2tr",
                  "value_sats": 330
                }
              ],
              "signals": [
                "rbf_enabled",
                "dust_output",
                "unsigned_inputs"
              ],
              "thresholds": {
                "dust_output_sat": 546,
                "high_fee_rate_sat_vb": 100
              },
              "txid": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
              "version": 2,
              "vsize": 141,
              "weight": 561
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "network": {
                      "default": "mainnet",
                      "enum": [
                        "mainnet",
                        "testnet"
                      ],
                      "type": "string"
                    },
                    "psbt": {
                      "type": "string"
                    },
                    "raw": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      },
      "builder-code": {
        "info": {
          "s": [
            "cdp_sdk_server"
          ]
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "additionalProperties": false,
          "properties": {
            "a": {
              "description": "App builder code",
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            },
            "s": {
              "description": "Service builder codes",
              "items": {
                "pattern": "^[a-z0-9_]{1,32}$",
                "type": "string"
              },
              "maxItems": 11,
              "type": "array"
            },
            "w": {
              "description": "Wallet builder code",
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            }
          },
          "type": "object"
        }
      },
      "eip2612GasSponsoring": {},
      "erc20ApprovalGasSponsoring": {}
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "preflight402.com",
    "manifest_name": "preflight402.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}