02_Vault_Inputs_Spent

Pulls every Bitcoin input where the vault address appears as the spending address. If this returns an empty list, it supports that the vault address has not spent any coins (no outbound movement). In Bitcoin, spending requires inputs that reference prior outputs.

By Ruvane · saved 23 January 2026 · Bitquery API v1

What it returns

Filters

The query

query ($network: BitcoinNetwork!, $address: String!, $limit: Int!, $offset: Int!) {
  bitcoin(network: $network) {
    inputs(
      inputAddress: {is: $address}
      options: {limit: $limit, offset: $offset, desc: "block.timestamp.iso8601"}
    ) {
      transaction { hash }              # spending txid
      value
      outputTransaction { hash index }  # previous outpoint (txid:vout) being spent
      block { height timestamp { iso8601 } }
    }
  }
}

Variables

{
  "network": "bitcoin",
  "address": "bc1qldeurx7eg9c60fkmvedkce4arss2jp9dy3vm9q",
  "limit": 1000,
  "offset": 0
}

Similar queries