Get the UTXO Input and Outputs for a specific address

Returns inputs and outputs on Bitcoin, where input address is bc1p4k…aztd and output address is bc1p4k…aztd: date date, any of amount, block height and transaction hash.

By Kshitij Mahajan · saved 16 June 2025 · Bitquery API v1

What it returns

Filters

The query

query ($network: BitcoinNetwork) {
  bitcoin(network: $network) {
    spendvolumes: inputs(
      inputAddress: {is: "bc1p4kufll9uhnpkgzuc65slcxd2qaw2hl9xecket3h8yyu4awglcsqslqaztd"}
    ) {
      date {
        date
      }
      any(of: amount)
      block {
        height
      }
      transaction {
        hash
      }
    }
    recievevolumes: outputs(
      outputAddress: {is: "bc1p4kufll9uhnpkgzuc65slcxd2qaw2hl9xecket3h8yyu4awglcsqslqaztd"}
    ) {
      date {
        date
      }
      any(of: amount)
      transaction {
        hash
      }
      block {
        height
      }
    }
  }
}

Similar queries