GET
/
api
/
v1
/
developer
/
bitcoin
/
raw
/
inputs
Get Inputs
curl --request GET \
  --url https://api.allium.so/api/v1/developer/bitcoin/raw/inputs \
  --header 'X-API-KEY: <api-key>'
{
  "items": [
    {
      "spent_transaction_hash": "<string>",
      "spent_output_index": 0,
      "script_asm": "<string>",
      "script_hex": "<string>",
      "sequence": 0,
      "txinwitness": {},
      "coinbase": "<string>",
      "index": 0,
      "transaction_hash": "<string>",
      "block_hash": "<string>",
      "block_number": 0,
      "block_timestamp": "2023-11-07T05:31:56Z",
      "input_id": "<string>",
      "spent_utxo_id": "<string>",
      "type": "<string>",
      "transaction_index": 0,
      "is_reorg": true,
      "is_patched_block": true,
      "fetched_at": "2023-11-07T05:31:56Z"
    }
  ],
  "size": 2,
  "page": 2
}
Inputs in Bitcoin transactions reference unspent outputs from previous transactions, using them to fund new transfers. Each input must match or exceed the value being spent, with any excess allocated to change or fees. Inputs are consumed in a First-In-First-Out (FIFO) manner, helping track the flow of funds.

Authorizations

X-API-KEY
string
header
required

Query Parameters

block_number
string

Response

Successful Response

items
TInput · object[]
required
size
integer
required
Required range: x >= 1
page
integer | null
Required range: x >= 1