Blockchain.com · JSON Structure

Data Api Tx Input Structure

A single Bitcoin transaction input.

Type: object Properties: 4
CryptocurrencyBitcoinBlockchain DataExchangeMarket DataTradingPaymentsPublic APIs

TxInput is a JSON Structure definition published by Blockchain.com, describing 4 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

sequence witness script prev_out

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/blockchain/refs/heads/main/json-structure/data-api-tx-input-structure.json",
  "name": "TxInput",
  "description": "A single Bitcoin transaction input.",
  "type": "object",
  "properties": {
    "sequence": {
      "type": "int64",
      "description": "Sequence number.",
      "example": 1
    },
    "witness": {
      "type": "string",
      "description": "SegWit witness data."
    },
    "script": {
      "type": "string",
      "description": "Input script (scriptSig) as hex."
    },
    "prev_out": {
      "type": "object",
      "description": "A single Bitcoin transaction output (a UTXO before it is spent).",
      "properties": {
        "type": {
          "type": "int32",
          "description": "Output type indicator.",
          "example": 1
        },
        "spent": {
          "type": "boolean",
          "description": "True if the output has been spent.",
          "example": true
        },
        "value": {
          "type": "int64",
          "description": "Value in Satoshi.",
          "example": 100000
        },
        "spending_outpoints": {
          "type": "array",
          "description": "Outpoints that spent this output (when spent).",
          "items": {
            "type": "object",
            "properties": {
              "tx_index": {
                "type": "int64"
              },
              "n": {
                "type": "int32"
              }
            }
          }
        },
        "n": {
          "type": "int32",
          "description": "Output index within the transaction.",
          "example": 1
        },
        "tx_index": {
          "type": "int64",
          "description": "Internal transaction index.",
          "example": 1
        },
        "script": {
          "type": "string",
          "description": "Output script (scriptPubKey) as hex."
        },
        "addr": {
          "type": "string",
          "description": "Destination address (when derivable)."
        }
      }
    }
  }
}

Work with this as data

Every JSON Structure here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for json structure

4 MCP tools reach this
  • find_json_structuresBrowse and filter every JSON Structure in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This JSON Structure
curl "https://apis.io/api/v1/json-structures/data-api-tx-input-structure"
All json structure
curl "https://apis.io/api/v1/json-structures?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.