Skip to main content
The Bitcoin query builder exposes blocks, transactions, inputs with previous-output data, and outputs. Portal returns these as separate arrays within each block.

Join records within a block

transactionIndex joins inputs and outputs to their parent transaction. inputIndex and outputIndex identify a record within that transaction.
Input and output requests also accept transactionInputs: true and transactionOutputs: true to include every sibling input or output from the same transaction.

Values

output.value and input.prevoutValue are JavaScript number values denominated in BTC, following Bitcoin Core’s JSON convention. Convert to a safe integer number of satoshis before storing or aggregating:

Identifiers and optional fields

  • txid identifies a transaction without witness data; hash is witness-aware.
  • Block hashes, transaction hashes, scripts, and witness items are bare hex without 0x.
  • Coinbase inputs have coinbase data instead of a previous txid and vout.
  • scriptPubKeyAddress and previous-output fields are optional. For example, a nulldata output has no spendable address.
  • Block timestamps and median times are Unix seconds.
See the query builder reference for every field, relation flag, and filter.