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.
What it returns
- transaction hash
- value
- output transaction hash
- output transaction index
- block height
- iso8601
Filters
- input address is bc1qld…vm9q
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
- Bitcoin balance using input outputs · Bitcoin · inputs
- bitcoin balance api · Bitcoin · inputs
- Details of Bitcoin Transaction · Bitcoin · Transactions
- Bitcoin — Balance of an address at a past date · Bitcoin · outputs
- 13_TxDetails_a6793e35 · Bitcoin · inputs