Outputs for specific input address

Returns the latest 10 transactions on Bitcoin, where input address is bc1qgg…sda0, date since 2023-05-24 and date till 2023-07-31: timestamp time, block height, input value, output count, input count, index, hash and fee value.

By gaurav · saved 31 July 2023 · run 8 times · Bitquery API v1

What it returns

Filters

The query

query ($network: BitcoinNetwork!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  bitcoin(network: $network) {
    transactions(
      options: {desc: ["block.height", "index"], limit: $limit, offset: $offset}
      date: {since: $from, till: $till}
      inputAddress: {is: "bc1qgg4zscf8c4462kunxafj6pfvhn5sxyz82ysda0"}
      outputValue: {gt: 0.00001, lt: 10}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      inputValue
      input_value_usd: inputValue(in: USD)
      outputCount
      inputCount
      index
      hash
      feeValue
      fee_value_usd: feeValue(in: USD)
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "bitcoin",
  "from": "2023-05-24",
  "till": "2023-07-31",
  "dateFormat": "%Y-%m-%d"
}

Similar queries